Blitzen 10 Posted December 20, 2010 Happy Holidays! I'm in the process of building a mission where a helicopter will land ontop of a building and drop off special forces units. I've figured out how to do this, but once the SF units are on the rooftops they always seem to run off the side of the building. The building/island Im using dosent have building postions on the top and therefore I cant tell them to move to a certain spot. I was wondering if there were any invisible/impassable objects that I can put ontop of the roof so that the units wouldnt be able to run off. Any tips/tricks for fixing this problem? Thanks Share this post Link to post Share on other sites
ArmAriffic 10 Posted December 20, 2010 You can set thre waypoint to "SAFE", there is an inviable wall but i'm pretty sure its for Players not AI Share this post Link to post Share on other sites
zulu1 145 Posted December 21, 2010 You can use this also: dude disableAI “move†"Dude" being the units name. Share this post Link to post Share on other sites
Blitzen 10 Posted December 21, 2010 what about setting a small trigger in a rectangle the size of the roof? and then have them stay in this trigger? Share this post Link to post Share on other sites
rellikki 7 Posted December 21, 2010 (edited) what about setting a small trigger in a rectangle the size of the roof? and then have them stay in this trigger? I'm not sure how you think that'd work, but I think the best way is to just use the stop and doMove commands. Even if you had some invisible walls set up around the roof, it wouldn't be 100% reliable to stop the A.I. from moving through them. Place some game logics around the roof, where ever you want the units to move and use the doMove command to make them move there, eg: unit doMove getPos logic1 Once in position, execute the stop command for them so they don't go wandering off the roof. You can check whether the unit is ready and in the assigned position with the unitReady command. If you use disableAI "MOVE" like Zulu1 suggested, then the unit will never be able to move again, there's no way to revert that command. Edited December 21, 2010 by Rellikki Share this post Link to post Share on other sites
SilverRanger 11 Posted December 21, 2010 create a trigger to cover the roof, set it to repeat and in the activation field put roofList=thislist. have your special forces units execute this script ; ;"_x exec {nameOfScript.sqs}" forEach [unit1,unit2,units group mySpecialForcesGuy,etc,etc] ; #start _pos = getpos _this ~0.01 ? _this in roofList : goto "start" #reposition dostop _this _this setpos _pos ~5 _this dofollow (leader group _this) goto "start" I only tested it on the ground, but the basic idea should work anywhere... Share this post Link to post Share on other sites