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 »AI Script Request

Author Topic: AI Script Request (4 messages, Page 1 of 1)
Moderators: Dennis

Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Nov 21, 2009 02:13 PM    Msg. 1 of 4       
Need a script to automatically unload all AI (marine1) from a pelican (pelican1)once you have arrived in a trigger volume named "landingzone1".
Edited by Mysterion on Nov 21, 2009 at 02:15 PM


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 21, 2009 04:12 PM    Msg. 2 of 4       
(script startup unload
(sleep_until (volume_test_objects landingzone1 (players)) 15)
(ai_exit_vehicle marine1)
)


Mysterion
Joined: Aug 9, 2008

Nice shot, but too bad your @$$ just got SACKED!!!


Posted: Nov 21, 2009 08:47 PM    Msg. 3 of 4       
Thanks...

Is there any way of having this team of marines just stand around in a base camp waiting for your pelican to pick them up, then when dropped off at the landing zone, charge into battle from that point? As they are killed, the marines would respawn back at base, and await your return to pick them up once again for transport.


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Nov 21, 2009 11:07 PM    Msg. 4 of 4       
Pseudocode:

Boolean inUse - false

Loop - {
Sleep until (AI are in vehicle)
inUse => true
Sleep until (AI not in vehicle)
if inUse == true
{
AI attack
Sleep until (AI are all dead)
inUse => false
Respawn AI
}
}
Edited by Gamma927 on Nov 21, 2009 at 11:08 PM

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:36 PM 110 ms.
A Halo Maps Website