85
edits
Line 238: | Line 238: | ||
chr_changeteam WH_Thug_A TCTF<br> | chr_changeteam WH_Thug_A TCTF<br> | ||
chr_teleport WH_Thug_A 7007<br> | chr_teleport WH_Thug_A 7007<br> | ||
<br | <br> | ||
ai2_spawn griffin<br> | ai2_spawn griffin<br> | ||
chr_changeteam griffin Syndicate<br> | chr_changeteam griffin Syndicate<br> | ||
Line 244: | Line 244: | ||
chr_set_health griffin 3900<br> | chr_set_health griffin 3900<br> | ||
}</tt> | }</tt> | ||
---- | |||
== Part 7: Delay == | |||
<tt>sleep</tt><br> | |||
<tt>chr_wait_health</tt> | |||
To wait for some time before executing a command, use <tt>sleep</tt>. To wait for approx 5 seconds before spawning an extra drone, go like this: | |||
<tt>sleep 300<br> | |||
ai2_spawn dum_train_block<br> | |||
chr_teleport dum_train_block 7010<br> | |||
</tt> | |||
To wait for a striker to die and then spawn some drones, go like this: | |||
<tt>chr_wait_health Top_Striker 0<br> | |||
ai2_spawn dum_train_block<br> | |||
chr_teleport dum_train_block 7010<br></tt> | |||
edits