Jump to content
Sign in to follow this  
Blackfox34

Simulated rounds help

Recommended Posts

I'm working on a misson for basic training and I want the rounds to not damage the players since it will be PvP/Force on Force.

I've searched for this topic on the forums and such but could not find anything.

I've fiddled with the addeventhandler "hit" however I could not get it to work. I'm a semi noob and I tried this. It works with the Hint format but not Globalchat as I want it to alert everyone.

this addEventHandler ["hit", "globalChat format['shot by %1',_this select 1]"]; this addEventHandler ["hit", "this setDamage 0"];

I've also tried doing the Chernarus Life/Zargabad Life Revolution stun effect, however, I could not get it to work, which would be perfect for what I'm aiming at:

1) Player gets hit from a round by any gun

2) Chat alerts other players that Player1 shot Player 2

3) Maybe a simulated knockout effect so the player is out of action for a short period of time.

I would like this to also be compatible with ACE.

Share this post


Link to post
Share on other sites

You can also use this which is easier. Run this code on each unit. Put it in their init.

this [url="http://community.bistudio.com/wiki/allowDamage"]allowDamage[/url] false;

You'll still get the blood when hit.... but will be invincible.

Edited by twirly
Clarity

Share this post


Link to post
Share on other sites
You can also use this which is easier. Run this code on each unit. Put it in their init.

this [url="http://community.bistudio.com/wiki/allowDamage"]allowDamage[/url] false;

You'll still get the blood when hit.... but will be invincible.

If he wants to do all of these, he'll need to use the EH:

1) Player gets hit from a round by any gun

2) Chat alerts other players that Player1 shot Player 2

3) Maybe a simulated knockout effect so the player is out of action for a short period of time.

Share this post


Link to post
Share on other sites

Oh yes. My bad for not reading it through.

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  

×