Jump to content
Sign in to follow this  
pcc

Where to set takedamage false for warfare buildings

Recommended Posts

Trying to limit damage on them as work around for AI construction problems. 

I've tried adding _site allowdamage false for sites in Server\Construction, but it only applies to construction props. 

Also tried _structure addEventHandler ["HandleDamage", {((_this select 2)*0)}]; in Server_StructureDamaged.sqf, but it only worked for heavy factory.

Share this post


Link to post
Share on other sites

At the end of the Server\Construction scripts "hit" (call BIS_WF_StructureDamaged) and "killed" (call BIS_WF_StructureDestroyed) event handlers get added to the structure (not the props).  You could try adding the "handleDamage" event handler along with them; or maybe the allowDamage false at the beginning of Client\Init\Init_BaseStructure.sqf, which is the structure init script.

  • Like 1

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  

×