Jump to content
  • 0

Walls HP


BigCrazyCat

Question

5 answers to this question

Recommended Posts

  • 0

You could just add this in your player_build.sqf

_tmpbuilt addEventHandler ["HandleDamage", { (_this select 2) / 2 }];

You'd also have to add it in server_publishObject.sqf as well. If the player who built the 'wall' logged out, the ownership of the wall would be transferred to the server, which needs to have the event handler as well.

 

Lastly, bang it into server_monitor.sqf as well and you should be golden.

 

Note: I haven't tested this so I could be completely overlooking something.

Link to comment
Share on other sites

  • 0

You could just add this in your player_build.sqf

_tmpbuilt addEventHandler ["HandleDamage", { (_this select 2) / 2 }];

You'd also have to add it in server_publishObject.sqf as well. If the player who built the 'wall' logged out, the ownership of the wall would be transferred to the server, which needs to have the event handler as well.

 

Lastly, bang it into server_monitor.sqf as well and you should be golden.

 

Note: I haven't tested this so I could be completely overlooking something.

 

Oh wow, thanks for this. Nice and simple and I never thought of it.  :P

 

I'll make an attempt following your steps when i get some free time will post back whether it works correctly.

 

Merry Christmas

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...