Page MenuHomeFeedback Tracker

WeaponAssembled and WeaponDisassembled eventhandlers do not work at all in the editor
Closed, ResolvedPublic

Description

Both of these eventhandlers wont do anything when assigned to a static weapon.

Details

Legacy ID
308072304
Severity
None
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Place down an static weapon.
  2. add an eventhandler to it, such as -> this addEventHandler ["WeaponDisassembled",{hint "Disassembled";}];
  3. Disassemble it and no hint is shown.

Event Timeline

Bumgie edited Steps To Reproduce. (Show Details)May 18 2015, 6:15 PM
Bumgie set Category to Scripting.
Bumgie set Reproducibility to Always.
Bumgie set Severity to None.
Bumgie set Resolution to No Bug.
Bumgie set Legacy ID to 308072304.May 8 2016, 12:06 PM
Bumgie edited a custom field.

That is because the EH needs to be assigned to the player not the weapon. change this for player and it will work.

Bumgie added a subscriber: Bumgie.May 8 2016, 12:06 PM

If someone could make this more clear at the wiki I think it would help others in the future.
Link:

https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#WeaponAssembled

I dunno what you are talking about...