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
Need help with this scripting.
Cruzore Offline
Senior Member

Posts: 301
Threads: 2
Joined: Jun 2012
Reputation: 37
#17
RE: Need help with this scripting.

example script:
PHP Code: (Select All)
void OnStart()
 {
  
SetLocalVarInt("YourVariableNameHere"0);

 }
 
void YourFunction(string &in asNameint alCount
 {
 if(
GetLocalVarInt("YourVariableNameHere")==0)
 {
 
SetLocalVarInt("YourVariableNameHere"1);

 
//and stuff you want to happen only once comes here
 
}
 
//stuff you want to happen allways comes here
 

void YourFunction is the Function that comes from your Checkpoint callback.
06-30-2012, 12:04 AM
Find


Messages In This Thread
Need help with this scripting. - by HoyChampoy - 06-29-2012, 07:18 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:22 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:47 PM
RE: Need help with this scripting. - by EXAWOLT - 06-29-2012, 07:48 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 07:51 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 08:06 PM
RE: Need help with this scripting. - by EXAWOLT - 06-29-2012, 10:19 PM
RE: Need help with this scripting. - by ApeCake - 06-29-2012, 10:24 PM
RE: Need help with this scripting. - by Cruzore - 06-29-2012, 11:57 PM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:04 AM
RE: Need help with this scripting. - by EXAWOLT - 06-30-2012, 12:05 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:05 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:16 AM
RE: Need help with this scripting. - by Cruzore - 06-30-2012, 12:43 AM



Users browsing this thread: 1 Guest(s)