move AI from point A to point B

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

move AI from point A to point B

Post by L0d3x »

Howdie everybody!

I'm trying to get a squad of marines to move from their starting positions to somewhere else. I tried the following:

I created an encounter called 'Marines'. In this encounter I made a marine squad called 'Marines1'. I assigned a command line to them which tells them to move to a certain command point (which I also placed on the map). I put the status of this marine squad to alert in all status boxes. I also created move positions but am not sure if this makes a difference.

Anyways I do not see my ai move at all if I do all this, so I decided to make a simple script. The one I used is:

Code: Select all

(script startup moveMarines1
(sleep 20)
(ai_command_list Marines Marines1advance)
(sleep 20)
(ai_command_list_advance Marines)
)
The script compiles fine and all. But again this doesn't seem to get them to move...

Could someone please tell me what I might be doing wrong?
I will reward you with some fine belgian chocolate!

Peace and love
L0d3x
User avatar
Andrew_b




Socialist

Posts: 4188
Joined: Sat Feb 24, 2007 4:52 pm
Contact:

Post by Andrew_b »

uhh

well did you restart sapien to see if the command worked?

you have to restart.
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

Alright I got it to work. In my command list Marines1Move I had set them to move blindly towards some point. I changed that to 'go to' and it magically worked!

Anyways thanks for you time.

Peace and love
L0d3x
User avatar
hell_knight





Posts: 625
Joined: Tue Feb 06, 2007 3:33 pm
Location: E1M1-Hangar

Post by hell_knight »

how die? u wish 4 us to die? :(
its spelled howdy and the cowboys in america are very picky aboot these things
L0d3x




Articulatist 250

Posts: 454
Joined: Sat Aug 18, 2007 3:32 am

Post by L0d3x »

Hehe :P

Sorry about that, I'll remeber that for my next question 8)
Post Reply