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 »script question

Author Topic: script question (4 messages, Page 1 of 1)
Moderators: Dennis

KingNick220
Joined: Jul 14, 2008


Posted: Aug 9, 2008 02:22 PM    Msg. 1 of 4       
ok so im doing some testing for my second single player map, i used some elitle anamations from this site and the elites dont get in the spectres so i scripted them 2 get in and i noticed if u flip over they either A go 2 fight B randomly run off C stand still, but they dont get in the spectre, so is there a script were once a player flips a vechile the ai go back 2 the vechile they were in before?


bobbysoon
Joined: Feb 1, 2007


Posted: Aug 9, 2008 03:03 PM    Msg. 2 of 4       
(script continuous reSeat
(if (= false (vehicle_test_seat the_Ghost "G-driver" the_AI) )
(unit_enter_vehicle the_AI the_Ghost "G-driver")
; else
(sleep 150) ;wait about 5 seconds before testing again
)
)

I'm not sure "G-driver" is correct. Look at the ghost's vehicle tag under "Seats"
"the_AI" might need to be "(unit the_AI)"

Copy and edit the script for each ai/vehicle combo and let me know if it works! There probably other ways if it doesn't


KingNick220
Joined: Jul 14, 2008


Posted: Aug 9, 2008 03:29 PM    Msg. 3 of 4       
in the script,just replace ghost with spectre? or can i just name the spectre vechile gost?


Ermac
Joined: Nov 24, 2006

Pops up from time to time


Posted: Aug 9, 2008 03:32 PM    Msg. 4 of 4       
You can use a continuous script that tests to see if they're in their required seats, and if they aren't, it forces them to get back in the vehicle.

Something like:

(script continuous getbackhereorillblowyourbrainsout
(sleep_until (= (vehicle_test_seat_list <vehicle> <nameofseat(the label)> <objectlist(something like (ai_actors (nameofencounterorsquadhere))>) false)
(ai_go_to_vehicle_override <encounter/squad> <vehicle> "")
)

To answer your question: you can name the spectre whatever you want. Whatever you name it in Sapien, though, is what you will refer to it as in the script.
Edited by drillinstructor on Aug 9, 2008 at 03:34 PM

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 9:42 PM 141 ms.
A Halo Maps Website