Home   Help Search Login Register  

Author Topic: How ai not in your group can do actions  (Read 1504 times)

0 Members and 1 Guest are viewing this topic.

Capt.Volkov

  • Guest
How ai not in your group can do actions
« on: 29 Aug 2002, 05:44:03 »
I need some help with:

how do i get to have an ai not in my group to sit down, and how do i get them to start on top of buildings or objects(like putting a crew sitting on the cannon of his tank).

Also can you please tell me other actions that can be done simply with the mission editor

Kaliyuga

  • Guest
Re:How ai not in your group can do actions
« Reply #1 on: 29 Aug 2002, 06:22:22 »
Well.. I'd suggest getting some copies of both the official and unofficial command references for starters....

But... to answer a couple of your questions
to have an AI guy sit down or something.. you'll need to use:
unitname playmove "nameofmove"

where the unitname is the one you give it in the editor and the nameofmove is one of the animations listed in the unofficial command ref ;)

to move guys/objects in the air.. use this in their init field:
this setpos [getpos this select 0, getpos this select 1,x]
where x = height above ground in meters...

;) if your building is enterable then you can create an AI unit.. give him a waypoint directly on the building name that appears in the editor.. there should be a new selection called position # or somesuch.. those positions are some of the spots inside where the AI will walk to and hold

FlidMerchant

  • Guest
Re:How ai not in your group can do actions
« Reply #2 on: 29 Aug 2002, 09:27:51 »
To sit down his behaviour must be safe.Also playmove didn't work for me, I had to use switchmove.

Capt.Volkov

  • Guest
Re:How ai not in your group can do actions
« Reply #3 on: 29 Aug 2002, 14:58:30 »
ok,thanks, but where do i find the command references?


Capt.Volkov

  • Guest
Re:How ai not in your group can do actions
« Reply #5 on: 30 Aug 2002, 14:53:53 »
thanks