Jump to content
Sign in to follow this  
D1Z4STR

Razorwire

Recommended Posts

With some razorwire barrier, how would i get it to not collapse when a player dies on/next to it? What would I type in the init of the object?

Share this post


Link to post
Share on other sites

it worked thanks!

---------- Post added at 05:12 ---------- Previous post was at 04:26 ----------

Never mind i was just testing about the 6th time and when I was shot i fell onto it and it collapsed.

Share this post


Link to post
Share on other sites

Put this in it's init field:

this addEventHandler ["HandleDamage",{}]; 

Share this post


Link to post
Share on other sites
Put this in it's init field:

this addEventHandler ["HandleDamage",{}]; 

allowDamage has seemingly become unreliable as of recently, is this command now obsolete?

Share this post


Link to post
Share on other sites

It's probably an issue of locality. allowdamage is local, so needs to be run on everyone's computer otherwise some might be able to damage it while others couldn't. HandleDamage eventhandler is local as well, but local to the object not the attacker, so that might be why it's a bit more resilient? :)

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  

×