Jump to content
Sign in to follow this  
Eagle-Eye

No damage by bullets?

Recommended Posts

Hi,

I'm making a real mission for the first time, so I'm pretty new to everything.

I've decided to give the player "blank" bullets. Because I don't want to work with the RemoveMagazines-command I'm searching for a way to make the bullets do absolutely no damage.

It would be a multiplayer/coop-mission so there will always be people who'll want to try if the bullets aren't doing what they're meant to do. Therefore I'd like to make the bullets either extremely inaccurate or make them useless because they aren't doing any damage at all on the target, even when the target is hit right in the face.

I've been looking for several scripts or commands to do this, but so far without much luck.

Thanks in advance,

Eagle-Eye.

Share this post


Link to post
Share on other sites

player addeventhandler ["Fired",{deletevehicle nearestobject [_this select 0,_this select 4]}]

Share this post


Link to post
Share on other sites

Perhaps I should've put this in my first post, but does this command limit itself to the rifle the player is holding initially? It would be stupid if the bullets remain harmless after a weaponswitch has taken place.

Share this post


Link to post
Share on other sites

It will prevent the player from doing damage with any weapon. You can check for when the player has a new weapon or when the player is outside a certain area and use:

Player removealleventhandlers "Fired"

Or just add that line to the end of the line that gives the player a new weapons if there is a scripted weaponswitch.

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  

×