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 »Specifically cinematic_set_title, and in general, scripting.

Author Topic: Specifically cinematic_set_title, and in general, scripting. (1 messages, Page 1 of 1)
Moderators: Dennis

Skidrow925
Joined: Mar 19, 2010

"ideological sense of respect and tact of a 5yo"


Posted: Jan 14, 2014 08:07 PM    Msg. 1 of 1       
I am trying to display an actors vitality to the HUD, but when I pick up something like a weapon or ammunition, it no longer displays it on the screen.
This is the script that should display it constantly. Not totally sure what's making it not comeback.

(script static real deli_health_get
( unit_get_health ( unit ( list_get ( ai_actors bsp0_deli ) 0 ) ) )
)
(script static real deli_health
( * ( deli_health_get ) 10 )
)
(script continuous deli_health_display
( begin
( cond
( ( and ( = ( deli_health ) 10 ) ( > ( deli_health ) 9 ) ) (cinematic_set_title dh10 ) )
( ( and ( < ( deli_health ) 10 ) ( >= ( deli_health ) 9 ) ) (cinematic_set_title dh9 ) )
( ( and ( < ( deli_health ) 9 ) ( >= ( deli_health ) 8 ) ) (cinematic_set_title dh8 ) )
( ( and ( < ( deli_health ) 8 ) ( >= ( deli_health ) 7 ) ) (cinematic_set_title dh7 ) )
( ( and ( < ( deli_health ) 7 ) ( >= ( deli_health ) 6 ) ) (cinematic_set_title dh6 ) )
( ( and ( < ( deli_health ) 6 ) ( >= ( deli_health ) 5 ) ) (cinematic_set_title dh5 ) )
( ( and ( < ( deli_health ) 5 ) ( >= ( deli_health ) 4 ) ) (cinematic_set_title dh4 ) )
( ( and ( < ( deli_health ) 4 ) ( >= ( deli_health ) 3 ) ) (cinematic_set_title dh3 ) )
( ( and ( < ( deli_health ) 3 ) ( >= ( deli_health ) 2 ) ) (cinematic_set_title dh2 ) )
( ( and ( < ( deli_health ) 2 ) ( >= ( deli_health ) 1 ) ) (cinematic_set_title dh1 ) )
( ( and ( < ( deli_health ) 1 ) ( >= ( deli_health ) -2 ) ) (cinematic_set_title dh0 ) )
)
( sleep 1 )
)
)

And yes, deli is reference to Delicon20.

E: Actually, it seems I was wrong about it being when you pick up ammo. I picked up ammo and a weapon, and it still worked, but went off after 23 seconds from map load. I tried again, and it died when the ammo count (pack not magazine) started blinking. I tried again but it didn't go off after that, but after 20 seconds. Then I though it might be time, but it stayed for about 30 seconds before going away. I am totally stumped.
Edited by Skidrow925 on Jan 14, 2014 at 09:00 PM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 5:14 PM 110 ms.
A Halo Maps Website