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
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#8
RE: how can i teleport a player when hit by an enemy

(02-09-2014, 07:37 PM)Amn Wrote: 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?

Yes, the timer only loops if it gets to the AddTimer at the bottom line. It does get there every loop until the if statement returns true, because return; makes it cancel out any further functions.

Of course instead of using return you could put else AddTimer so that it only adds the timer if the if statement returns false.

02-10-2014, 01:53 AM
Find


Messages In This Thread
RE: how can i teleport a player when hit by an enemy - by Mudbill - 02-10-2014, 01:53 AM



Users browsing this thread: 1 Guest(s)