amokrun1 Posted yesterday at 03:26 PM Share Posted yesterday at 03:26 PM I am attaching a script to a weapon to get a global value and it performs as I want but I only want it to run once. What is the command for this? I have seen DoOnce before but cannot remember how it was used. The script is as of now: Begin OnAdd Player set xGlobal to 1 End Link to comment Share on other sites More sharing options...
madmongo Posted yesterday at 04:13 PM Share Posted yesterday at 04:13 PM Begin OnAdd Player if xGlobalDoOnce != 1 set xGlobal to 1 set xGlobalDoOnce to 1 endif End Link to comment Share on other sites More sharing options...
amokrun1 Posted 22 hours ago Author Share Posted 22 hours ago Wow that is simple. Thank you! Link to comment Share on other sites More sharing options...
laclongquan Posted 4 hours ago Share Posted 4 hours ago I think doonce use in various scripts that attach to box of powders, box of case, box of primers. Link to comment Share on other sites More sharing options...
Recommended Posts