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
Preventing scripts from repeating
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#6
RE: Preventing scripts from repeating

Yes it would run again (if the addcollide & setlocalvar was placed under OnEnter() ) . Kyle explained how you get a function to run once everytime you enter a map. If you want it to run once "ever" then simply use this line:
AddEntityCollideCallback("Player", "ScriptArea_1", "Func01", true, 1);

[Image: mZiYnxe.png]


(This post was last modified: 08-18-2011, 12:02 AM by Acies.)
08-18-2011, 12:01 AM
Find


Messages In This Thread
Preventing scripts from repeating - by rybray - 08-17-2011, 04:16 PM
RE: Preventing scripts from repeating - by Kyle - 08-17-2011, 04:30 PM
RE: Preventing scripts from repeating - by rybray - 08-17-2011, 05:46 PM
RE: Preventing scripts from repeating - by Kyle - 08-17-2011, 05:57 PM
RE: Preventing scripts from repeating - by rybray - 08-17-2011, 09:12 PM
RE: Preventing scripts from repeating - by Acies - 08-18-2011, 12:01 AM



Users browsing this thread: 2 Guest(s)