Jump to content
Sign in to follow this  
EBass

Make side East hold/Open fire and Urban combat questions.

Recommended Posts

Ok couple of questions here.

Firstly is there a command to get the entire side OpFor to hold/open fire? Basically I need all Opfor units to stop firing when one trigger is hit and fire again when another trigger hits.

Second qustion (and yes I have searched) is that is there a better way to get soldiers to take up positions in/on buildings than manually adjusting their height and putting a hold waypoint right on them? If you put them in groups then only the leader will stay in place everyone else will bugger off. Some buildings even with a hold waypoint they still walk out of so you have to use disableAI "Move" on them even though that means they can't rotate which makes them of suspect usefulness.

Oops one more, how would I make a trigger fire when a specific unit boards a vehicle?

Cheers for the help.

Edited by EBass

Share this post


Link to post
Share on other sites

Do you have CBA? If yes then cba_fnc_taskDefend is your friend.

If not, then put this into the init-field: this disableAI "MOVE"; this setPos (nearestBuilding this buildingPos x); , where x is the building position (Just use try & error to find a nice place).

Edit: Answer to your vehicle boarding trigger:

Put this to the init-field of the trigger: unit != vehicle unit

Where unit is the name of the unit.

Edited by Gekkibi

Share this post


Link to post
Share on other sites

Easy method to assign positions in buildings:

Put this in the soldiers init:

this setPos ((position this nearestObject 123839) buildingPos 4);

123839 = building identifier number - max zoom in on the Editor, press the ID's button.

4 = building position - you will have to figure out where these are.

If you go into a building as a squad leader and press space - you get lines to building positions as you move the cursor around.

If you want to make them keep standing up - best on balconies etc:

this setUnitPos "Up";

Edited by PELHAM

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  

×