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 »A.I. script help

Author Topic: A.I. script help (7 messages, Page 1 of 1)
Moderators: Dennis

Somone77
Joined: Aug 25, 2007


Posted: Jan 27, 2008 10:34 AM    Msg. 1 of 7       
im trying to make a script so an encounter gets out of a vehicle when the player is not in it. take halo pc campain for example when (in the tank) you got out and 2 sec. l8er they got out. can someone help me with this?


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jan 27, 2008 10:53 AM    Msg. 2 of 7       
(script continuous aiejection
(if (= (vehicle_test_seat_list scorpion1 "scorpion-driver" (players)) 0)
(vehicle_unload scorpion1 "")
)
)

If the player isnt in hte scorpion1 driver seat, it will empty out the vehicle of passangers.


Somone77
Joined: Aug 25, 2007


Posted: Jan 27, 2008 11:13 AM    Msg. 3 of 7       
if i change the seat to wdriver will it work with a warthog?

EDIT: it says that that command needs exactly 3 arguments! what now!
Edited by cheater101 on Jan 27, 2008 at 11:27 AM


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jan 27, 2008 11:23 AM    Msg. 4 of 7       
Quote: --- Original message by: cheater101
if i change the seat to wdriver will it work with a warthog?

w-driver, but the thing is.. if he jumps in the turret or something like that, it will find he isnt in the driver seat, and boot him.. you need to add the (or <comands>) to check if hes in any of the seats, and if hes not, then unload.


Somone77
Joined: Aug 25, 2007


Posted: Jan 27, 2008 12:01 PM    Msg. 5 of 7       
so what your saying is that it will boot him though im in the driver and hes in the gun? i just want it so if i get out of the hog everyone gets out... wow i cant beleve how hard this stuff can get from a simple sentence to a big script.. and to think i have to do this seven times!


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Jan 27, 2008 12:13 PM    Msg. 6 of 7       
Quote: --- Original message by: cheater101
so what your saying is that it will boot him though im in the driver and hes in the gun?

No, if you use that script on a warthog, it will make it so that if your in anything other than the driver it will unload, so if YOU are in the turret it will kick you out unless you do what I said about the or


Somone77
Joined: Aug 25, 2007


Posted: Jan 27, 2008 06:33 PM    Msg. 7 of 7       
ooo ok but what about the needs 3 argument crap?

 

 
Previous Older Thread    Next newer Thread







Time: Sat January 21, 2023 1:19 AM 110 ms.
A Halo Maps Website