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 General Discussion »Teleporting AI

Author Topic: Teleporting AI (6 messages, Page 1 of 1)
Moderators: Dennis

Dumb AI
Joined: Sep 18, 2011

Dead.


Posted: Mar 25, 2012 12:51 AM    Msg. 1 of 6       
I want some AI to teleport to another place on the map.I can't see to make it work,though,since the netgame flags were only meant for players.Teleporting AI was done in thefloodv2 so don't tell me it's not possible.Just tell me the way...


TM_updates
Joined: Aug 31, 2011

Superior to you, Superior Musclez near Brussels


Posted: Mar 25, 2012 03:31 AM    Msg. 2 of 6       
This is how I would do it:

- Place a biped of your choice
- Attach ai to this biped using the (ai_attach ...) script
- When you need to teleport your ai, use the (object_teleport...) script you'll need to place a flag somewhere in Sapien to mark the destination

For exact syntaxes to the above scripts refer to hs_doc, as I do not know them by heart.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 25, 2012 12:30 PM    Msg. 3 of 6       
(global short number 0)
(script static unit teleai
(unit (list_get (ai_actors YOURAI) number))
)
(script continuous teleportingAI
(if (volume_test_object YOURTRIG (teleai)) (object_teleport (teleai) YOURFLAG))
(if (< number (ai_living_count YOURAI)) (set number (+ number 1)) (set number 0))
)


Any time an AI from your named encounter enters your named trigger volume, it teleports to the named flag.


Dumb AI
Joined: Sep 18, 2011

Dead.


Posted: Mar 25, 2012 01:11 PM    Msg. 4 of 6       
What would be the trigger?Can a point be a trigger?Or some object?


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 25, 2012 01:16 PM    Msg. 5 of 6       
trigger volume, its a giant invisible box. It waits for the specified object to enter it.


kirby_422
Joined: Jan 22, 2006

Apparently public enemy number 1?


Posted: Mar 25, 2012 05:49 PM    Msg. 6 of 6       
Quote: --- Original message by: goldkilla88
You do know there is a command list for making them teleport right? Without scrips?

Yes, but read his post. Hes talking about netgame teleporters, so hes wanting them to be able to teleport whenever they get somewhere, not when they are in the middle of a command_list.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 11:56 PM 140 ms.
A Halo Maps Website