Jdownward 33 Posted January 28, 2016 I was wonder if there are any scripts that can help me out with this. The object that i would like to stop from being damaged are hesco's on the Sangin map at FOB Alamo(no disrespect the the author its a amazing map). Please help. Share this post Link to post Share on other sites
driftingnitro 38 Posted January 28, 2016 _pos = getPos (getPos building_1 nearestObject <BUILDING ID>); (getPos building_1 nearestObject <BUILDING ID>) allowDamage false; This is a script I've used for a while now, Spawn a Game Logic in editor Name it "building_1" Put that script in the Game Logic's init field Put it over the building you want to be invincible Use the "ID" icon in editor to find the ID of the building Write the building ID in both places in the script and remove the arrows Share this post Link to post Share on other sites
whiztler 135 Posted January 28, 2016 Using static object ID's is not preferred (anymore). There is a dedicated command for map objects: https://community.bistudio.com/wiki/nearestTerrainObjects Share this post Link to post Share on other sites
driftingnitro 38 Posted January 28, 2016 That's new, I'll use that now. Share this post Link to post Share on other sites