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
[SCRIPT] Running a script when attacked
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#6
RE: [SCRIPT] Running a script when attacked

(05-18-2013, 11:17 PM)ClayPigeon Wrote: Try setting the player's health to enourmous numbers before the hit.
Set up an area before the hit, when which he collides with, it sets his health to lets say... a billion, and another area on the actual floor, and when he hits it, it sets his health back to 100.
Not sure if the engine allows to set over 100 hp, though.

I think I fixed that already. I set the player's health to 100 when the timers start to run. Just make sure the player can't take any other damage than the monster's.
(This post was last modified: 05-18-2013, 11:36 PM by OriginalUsername.)
05-18-2013, 11:35 PM
Find


Messages In This Thread
RE: [SCRIPT] Running a script when attacked - by OriginalUsername - 05-18-2013, 11:35 PM



Users browsing this thread: 1 Guest(s)