Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
santiagojamesaea

Sergeant
Registered:
Posts: 106
Reply with quote  #1 
hi all,
i can script the ai so that they stand-for use in trenches,and,i can script so that they stay still.Can anyone give me a script so that the ai is kneeling? I will have them stationary behind a sandbag wall,defending of course.

Thanks!!
0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 456
Reply with quote  #2 
This to have a unit kneeling
this setUnitPos "Middle";


This to have a unit lying down
this setUnitPos "Down";


This to have a unit standing;
this setUnitPos "UP";


This to have a unit descides for himself any of the above
this setUnitPos "Auto";




0
santiagojamesaea

Sergeant
Registered:
Posts: 106
Reply with quote  #3 
Hi there,
i've just tried to have the AI kneel,they don't they lie down.This is even though i have disabled their movement..any thoughts?
0
Tayuk

Avatar / Picture

Retired Admin/IFR
Registered:
Posts: 456
Reply with quote  #4 

Yes mate, they must have changed the commands for kneeling, try this (Ive just tested it and it works).

this setUnitPos "Middle";


I'll have a look to see if they changed the others at all

My original answer is updated.

0
santiagojamesaea

Sergeant
Registered:
Posts: 106
Reply with quote  #5 
works great! I'm considering making a post of "beginners code".
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.