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
Any way to loop a AddEntityCollideCallback?
theabcs Offline
Junior Member

Posts: 5
Threads: 2
Joined: Apr 2012
Reputation: 0
#5
RE: Any way to loop a AddEntityCollideCallback?

(04-04-2012, 10:59 PM)stonecutter Wrote: is this right ?
AddLocalVarInt("arm", 1);

you set it to 1 but in the next if statement it has to be 10 ?

where is the function to increase the variable "arm" ?
maybe it has something to do that you have to set the variable again to 1.
can you post the whole script ?
I cannot post the whole script because it is over 400 lines. Firstly, AddLocalVarInt("arm", 1); means that you are adding a value of 1 to "arm". So this script says when the player collides with a certain script function so many times (10), then to activate the following. I also figure out the answer to my problem so no need to worry.


04-05-2012, 04:31 AM
Find


Messages In This Thread
RE: Any way to loop a AddEntityCollideCallback? - by theabcs - 04-05-2012, 04:31 AM



Users browsing this thread: 1 Guest(s)