How do I make the 'Quick Revive' perk require power in the BO3 mod tool? Every other perk machine prefab seems to start associated with the power switch prefab, and requires that you flip the switch before use. However, the "Quick Revive" is purchasable even before the power is turned on. I've tried linking the two, but it didn't have the desired result Thanks in advance!
TRY going to yourmapname.gsc and above zm_usermap::main(); add this line
Code Snippet
Plaintext
level.initial_quick_revive_power_off = true;
havent tested this yet but might do the trick let me know
That worked!...kind of..lol. The machine now starts off, and shows the message that it needs the power on, however, when I flip the switch it does not turn on. Again, tried linking the two , without the desired effect.
ok thanks for testing that im home now so i can look into it. It might not be getting notified when power is turned on ill take a look. Double Post Merge: February 25, 2017, 11:09:54 pm yourmapname.gsc and above zm_usermap::main(); replace: level.initial_quick_revive_power_off = true; ( if you still have it there ) WITH:
ok thanks for testing that im home now so i can look into it. It might not be getting notified when power is turned on ill take a look. Double Post Merge: February 25, 2017, 11:09:54 pm yourmapname.gsc and above zm_usermap::main(); replace: level.initial_quick_revive_power_off = true; ( if you still have it there ) WITH:
Wow! That worked. Thanks so much for the help! Mind if I ask, how you figured that out? For example, how did you know the notify function argument was "revive_on"? Is there documentation somewhere? I have sublime text set up with the gsc definitions, but it only shows function names, no details on what they do. I assume that the 'level flag' code corresponds to the kvp 'script_flag' ?