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
how can i teleport a player when hit by an enemy
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#7
RE: how can i teleport a player when hit by an enemy

(02-09-2014, 01:42 AM)Mudbill Wrote:
(02-09-2014, 01:18 AM)Amn Wrote: Careful, the function TimerLoopCheck is gonna loop and keep teleporting the player if his health is still <= 75.

Well, it actually won't because as soon as the if statement passes (first time at 75 health), return is called which makes it not loop anymore.
Oh, so the timer below is the only one calling the function.
So it's supposed to work only once? Or you declare the callback again?

02-09-2014, 07:37 PM
Find


Messages In This Thread
RE: how can i teleport a player when hit by an enemy - by Daemian - 02-09-2014, 07:37 PM



Users browsing this thread: 1 Guest(s)