
Halo CE Noob Modder117
Joined: Aug 9, 2018
Can we just be friends? Chill my dudes...
|
Posted: Mar 26, 2020 10:13 AM
Msg. 1 of 3
Is it possible to have a script repeat itself throughout the duration of a level?
E.G. Spawn a vehicle, have it complete its run, despawn, respawn and repeat the exact same thing?
Like Halo 2 on Metropolis, the pelicans at the end spawn in, fly across the ocean, despawn and sleep for 5-10 seconds and the script resets.
Is this what is called a 'continuous' script?
(script name continuous crap (spawn pelican object creation (recording play and hover (unload poop (recording play and delete (sleep 1000 years (repeat? ) Edited by Halo CE Noob Modder117 on Mar 26, 2020 at 10:13 AM
|

MatthewDratt
Joined: Sep 11, 2010
TAKEDOWN IS OUT MattDratt.com
|
Posted: Mar 26, 2020 05:28 PM
Msg. 2 of 3
Yup, continuous would be best course of action for this.
(script continuous pelican_flyby (object_create_anew peli_bg_1) (object_teleport peli_bg_1 peli_gb_1_spawn) (recording_play_and_delete peli_bg_1 peli_bg_1_ra) (sleep (recording_time peli_bg_1 )) (sleep (30 * 10)) )
Script static voids also let you run a series of commands a script itself
(script static void pelican_flyby (object_create_anew peli_bg_1) (object_teleport peli_bg_1 peli_gb_1_spawn) (recording_play_and_delete peli_bg_1 peli_bg_1_ra) (sleep (recording_time peli_bg_1 )) (sleep (30 * 10)) )
(script startup start_me_up_baybee (Zhu Li, do the thing (sleep 30) (pelican_flyby) (sleep 90) (more scripts (pelican_flyby) )
|

Halo CE Noob Modder117
Joined: Aug 9, 2018
Can we just be friends? Chill my dudes...
|
Posted: Mar 26, 2020 10:17 PM
Msg. 3 of 3
Sweet, thanks for that confirmation.
Love the script example by the way.
|