Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player dies instantly when walking into area
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#7
RE: Player dies instantly when walking into area

Nah, listen, if you just want the worm to kill the player on contact, just declare a collide callback.
Worm with player.

PHP Code: (Select All)
AddEntityCollideCallback"Worm""Player""WormPlayerCollide"true); 

PHP Code: (Select All)
function WormPlayerCollide string &in pstring &in cint s )
SetPlayerHealth( -); } 

That should work.

11-21-2013, 04:21 AM
Find


Messages In This Thread
RE: Player dies instantly when walking into area - by Daemian - 11-21-2013, 04:21 AM



Users browsing this thread: 1 Guest(s)