EBass 0 Posted January 19, 2011 (edited) 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 January 19, 2011 by EBass Share this post Link to post Share on other sites
Gekkibi 11 Posted January 19, 2011 (edited) 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 January 19, 2011 by Gekkibi Share this post Link to post Share on other sites
PELHAM 10 Posted January 20, 2011 (edited) 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 January 20, 2011 by PELHAM Share this post Link to post Share on other sites
Mr. Charles 22 Posted January 20, 2011 http://community.bistudio.com/wiki/setFriend Share this post Link to post Share on other sites