amokrun1 Posted November 7, 2024 Share Posted November 7, 2024 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 November 7, 2024 Share Posted November 7, 2024 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 November 7, 2024 Author Share Posted November 7, 2024 Wow that is simple. Thank you! Link to comment Share on other sites More sharing options...
laclongquan Posted November 8, 2024 Share Posted November 8, 2024 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