Page MenuHomeFeedback Tracker

eventhandler "fired" and "firednear" don´t return muzzle
Closed, ResolvedPublic


both eventhandlers are supposed to return "muzzle" - String. They simply don´t. They always return the weapon name where they shouldn´t. So it´s not possible identify the muzzle the shot was fired with. too bad, cause i need exactly that to check wether a silencer was used or not


Legacy ID
No Bug
Steps To Reproduce

addeventhandler fired or fired near. hint str the muzzle string that should be fetched by those two handlers

Event Timeline

rickb edited Steps To Reproduce. (Show Details)Oct 20 2014, 12:19 PM
rickb edited Additional Information. (Show Details)
rickb set Category to Scripting.
rickb set Reproducibility to Always.
rickb set Severity to None.
rickb set Resolution to No Bug.
rickb set Legacy ID to 689899817.May 7 2016, 7:39 PM

You can use weaponAccessories command for it

_silencer = player weaponAccessories currentMuzzle player select 0;
hasSilencer = !isNil "_silencer" && {_silencer != ""};

Is this satisfactory?

rickb added a subscriber: rickb.May 7 2016, 7:39 PM
rickb added a comment.Oct 21 2014, 5:38 PM

yep..exactly what i wanted..thanks kid

Ok, will resolve it than unless there is something else

Mass-closing all resolved issues not updated in the last month.

Please PM me in BI Forums ( if you feel your bug was closed in error.