Script Help

Technical Chatter here.
Post Reply
TheDarkOne555





Posts: 69
Joined: Thu Jul 20, 2006 3:40 am
Contact:

Script Help

Post by TheDarkOne555 »

Im not writing my own script yet, but im studying others. But i need help here:

Code: Select all

(script dormant _stealth_toggle_monitor
 (begin
   (sleep_until
   (begin
     (sleep_until (if (and (>= (unit_get_shield (player0)) 1) (player_action_test_vision_trigger)) (= 1 1)
     (begin
       (player_action_test_reset) (= 1 0)
    )) 1)
     (cheat_active_camouflage_by_player 0 True)
     (print "stealth engaged")
     (unit_set_maximum_vitality (player0) 50 0)
     (unit_set_current_vitality (player0) 50 0)
     (object_set_shield (player0) 0)
     (sleep 30)
     (player_action_test_reset)
     (sleep_until (or (< (object_get_health (player0)) 1) (player_action_test_vision_trigger)) 1)
     (cheat_active_camouflage_by_player 0 False)
     (print "stealth disengaged")
     (unit_set_maximum_vitality (player0) 30 70)
     (object_set_shield (player0) 0)
     (sleep 30)
     (player_action_test_reset) False
) 1)

I understand the "Cheat_actice_camouflage_by_player" part and the "Object set shield" part, but where does it say that you have to press the white button?
---Begin Geek Code Block---
GAT d->d s+:+>s: a--- C++ !U P L- !E W++
N? o? K? w++++ O--- M- V? PS+++ PE? Y PGP+
t+@ 5? X R tv b++ DI- D++++ G++ e- h!
r-->r--- z
---End Geek Code Block---

Dont know how to Read Geek Code? Go to
http://www.geekcode.com
Post Reply