The kill triggers information came from this very thread, I was the one that announced that guerillaTST wasnt capatible with scenarios with kill triggers. But with the new object distance command, I really dont care about volume triggers. anything item can do that job now.
I know ive ran that command in sapien, and I think I might of done it ingame when I did a test with every button doing a different kind of data dump (incase one causes exceptions, then I can be in control and figure out what I can dump) where did it dump this information to?
If anyones interested, ive written a script that actually crashes sapien and tool on compile rather than just giving error messages lol. idk whats wrong with it, but im gonna blame that region command, as its new for H2, so ive never used it. Never bothered testing that fact though lol.
Code:
(global short hog1repair 0)
(script continuous repairhogs
(if (or (< (objects_distance_to_object repair1 warthog1) 3)
(< (objects_distance_to_object repair2 warthog1) 3)
(< (objects_distance_to_object repair3 warthog1) 3)
)
(begin
(object_cannot_die warthog1 1)
(set hog1repair (+ hog1repair 1))
(unit_set_current_vitality warthog1 (+ (* (unit_get_health warthog1) 250) 1) 0)
(if (> hog1repair 50) (begin (object_set_region_state warthog1 "" base) (set hog1repair 0) ))
)
(begin
(object_cannot_die warthog1 0)
(if (> hog1repair 0) (set hog1repair (- hog1repair 1)))
)
)
)
Bookmarks