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 Help Ticking damage
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Ticking damage

Yeah....Here's how you'll want to work it out:
Add a collide callback with the slime area that tracks both entering and leaving states and is not removed automatically. Then just check which state the player is (1 for entering, -1 for leaving) and either start a looping timer which gives the player some damage or stops the timer using RemoveTimer().

12-20-2011, 05:21 PM
Find


Messages In This Thread
Ticking damage - by i3670 - 12-20-2011, 04:21 PM
RE: Ticking damage - by palistov - 12-20-2011, 05:21 PM
RE: Ticking damage - by flamez3 - 12-20-2011, 05:49 PM



Users browsing this thread: 1 Guest(s)