A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »Is it possible to check for the health of an object?

Author Topic: Is it possible to check for the health of an object? (2 messages, Page 1 of 1)
Moderators: Dennis

Pepzee
Joined: Sep 9, 2010

Retired Halo Modder


Posted: Sep 17, 2011 03:39 PM    Msg. 1 of 2       
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


cyboryxmen
Joined: Nov 7, 2010

--CG artist-- New mission. Refuse this Mission!


Posted: Sep 20, 2011 12:51 PM    Msg. 2 of 2       
convert target into a unit with (unit target)
-Zekilk

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 10:43 PM 172 ms.
A Halo Maps Website