Jump to content
Sign in to follow this  
Jdownward

Stop map object from taking damage.

Recommended Posts

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
_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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×