Page MenuHomeFeedback Tracker

Deploying a mine or explosive charge will trigger "FiredNear" event
Closed, ResolvedPublic

Description

Is this a hidden feature or a bug? See steps to reproduce.

Details

Legacy ID
284951382
Severity
None
Resolution
Not A Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Spawn yourself as an "Explosive Specialist"
  1. Spawn another empty vehicle and put in the init field:

this addEventHandler ["FiredNear", {systemChat format ["fired near: %1m", (_this select 2)]}]

  1. Hit "Preview" and deploy a mine/explosive somewhere nearby

Event Timeline

simast edited Steps To Reproduce. (Show Details)May 22 2013, 8:32 AM
simast edited Additional Information. (Show Details)
simast set Category to Scripting.
simast set Reproducibility to Always.
simast set Severity to None.
simast set Resolution to Not A Bug.
simast set Legacy ID to 284951382.May 7 2016, 2:12 PM

If i have understood what you're explaining correctly, i'd say it's just how the engine works.

When you place a mine (or generally a plantable explosive) it has a area of effect which triggers the firedNear function to "detect" vehicles (in this case) to get the mine blow up or, in touch off explosives, to identify the area and kind of damage.

Interested in getting a DEV feedback though :)

simast added a subscriber: simast.May 7 2016, 2:12 PM

@Kid18120 Yeah.. but why when deployed? I would understand if it triggered "FiredNear" when the actual explosion/detonation happened.

I am not saying it's a bad feature or actually a bug.. I am actually thinking it's neat (albeit a bit hacky), as you can detect explosive deploy events this way. Also, to filter out that kind of explosive/mine events you can write in Arma 3 (inside the event handler code):

if ((_this select 3) isKindOf "Put") exitWith{}; // Not interested in explosives/mines

This is side effect of that EH. There is no need to change this - you can use it in some situations and it doesn't break anything. You can report it again if you find any situation where is this real problem. But for now it is ok - closing as no change required. Thanks for feedback :)