Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
thetrooper

unitsFix a unit to position

Recommended Posts

ok, couple of qustions. I've got a couple of bugs I've been trying to solve, but can't find anything on it.

1.

First, I've some AI guys (a group) with a move in cargo script, in this case a chinook or CH47. The chopper can't take off until these units are in it. Once they are called by a SQF page (code below) They decide to jump back out of it :s How can I get them to stay in it until it takes off and lands somewhere?

unit1 moveInCargo [chinook, 3];

The reason I don't want to set up by waypoints and sync is because it gets a bit messy with the chopper taking off to land etc before they get in. Takes too much time.

2.

In another mission I want some guys to simply stay where they are and not move about because for some reason they like to go through the Hesco Bastion when not supposed to.Is there a way I can get them to stay fixed in a position despite enemy being around? Maybe even to stay kneeling when doing this? Is it even possible?

Share this post


Link to post
Share on other sites

1: use assignAsCargo before the moveInCargo, else the unit doesnt know its in the vehicle and will exit.

2:

[url="http://community.bistudio.com/wiki/doStop"]doStop [/url]this;

in unit initline will stop a unit in its place.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×