Hey all,
I have searched everywhere for this answer but I cannot find it. I have a scenery object that can be destroyed and I want to make something occur after the scenery is destroyed. Is this possible? I keep using this command:
(script startup scenery
(sleep_until (= (unit_get_health target) 0) 15)
(game_save))
The problem with that is the script returns a unit and not an object, I have searched everywhere for a command that does this but I can't find it. Does it even exist?
I also tried:
(script startup scenery
(sleep_until (= (list_get (target) 0)) 0) 15)
(game_save))
But it gave an error:
09.17.11 20:13:52 the = call requires 2 arguments.: (= (list_get (target) 0)) 0) 15)
Edited by Pepzee on Sep 17, 2011 at 11:26 PM