Modme Forums

Wait for power script

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Kingslayer Kyle

Does anybody know the script for wait for power,

I have a machine that I need to set up to wait until the power is turned on for it to work,

I also need to set it up so that a hint string says 'Wait until the power is turned on'

Thanks,

Kyle :)


ModmeBot:

Reply By: Abnormal202

You can use the waittill:

level flag::wait_till("power_on");



To hold the script until power is on. For the Hintstring you can use the default Treyarch one defined as:

trigger SetHintString( &"ZOMBIE_NEED_POWER");


ModmeBot:

Reply By: Kingslayer Kyle

Abnormal202

You can use the waittill:

level flag::wait_till("power_on");



To hold the script until power is on. For the Hintstring you can use the default Treyarch one defined as:

trigger SetHintString( &"ZOMBIE_NEED_POWER");

Thanks man :)