Jump to content
Sign in to follow this  
Mirek

Get AI sit on chair that has been moved from original possition

Recommended Posts

I have pair of folding chairs named "chair" and "chair_1", then i have two guys named z1 and z2. i have setup the mission so the chairs would spawn on one of the few random locations, by grouping the first chair to few markers, and attaching the second chair to the first.

Every time i launch the mission, both chairs are on different location than the previus launch, so random spawning works.

First guy is always on his chair, no matter where the chair spawns, so this also work,

but the second guy keeps spawning at the original location of the second chair sittting in the air.

code for the second chair:

chair_1 attachTo [chair,[2,0,0]];                                 
this setVectorDirAndUP [[0,0,0],[0,0,1]]; 
sleep 30;                         
RemoveAllWeapons z2;
z2 setCaptive true;
z2 disableAI "MOVE";  
removeAllWeapons z2;
 z2 switchMove "sitUnarm_L_relaxing";   
z2 setPos (getPos chair_1); 
 z2 setDir (getDir chair_1 - 90);

Edited by Mirek

Share this post


Link to post
Share on other sites

Anyone?

I still didnt solve this.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×