How could i go about making it so that when a player bumped the north side of an NPC they would die? (Im not sure if u can even do directional crap like this...)
Plz And Thxs
-Darkarch
EDIT: I Mean The NPC would get deleted...
ID:162442
Jan 7 2008, 8:03 am (Edited on Jan 7 2008, 8:26 am)
|
|
1) You need to make a "Bumped()" type of procedure. Bump() will not work since it is called on the person who bumped INTO something. You can use Bump() with a mob but meh...
That was a free freebie for you, all you need to do is just define Bumped() for whatever you want... remember to call the parent proc (..()) for Bump()! Bumped() you do not need it...
2) Now that you have Bumped() in, check the direction of the person who entered... remember to safety check: