Page MenuHomeFeedback Tracker

EntityCreated EH triggers when units disembark vehicles
Feedback, NormalPublic

Description

There are actually 2 bugs here:

  1. Simply add this EH:
addMissionEventHandler ["EntityCreated", {
	params ["_obj"];
	systemChat format ["added %1 %2", getObjectID (_obj), typeof _obj];
	
}];

Then using Zeus, simply move the unit into a vehicle, then move him out (or order him to get out). The EH will trigger. It also triggers if you delete the vehicle while the unit is inside.

  1. Every time you delete a unit on foot, the EntityCreated EH also registers a logic object immediately in the next frame for some reason (might not be a bug tho)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Leopard20 updated the task description. (Show Details)Jul 12 2023, 10:40 PM
dedmen added a subscriber: dedmen.Jul 17 2023, 1:51 PM

Problem is EntityCreated runs not when entity is created, but when entity is added into the world.
When you get out of vehicle, you are added back into world.

Cannot repro 2. in empty VR mission with zeus.

dedmen set Ref Ticket to AIII-55776.Jul 17 2023, 1:51 PM
dedmen changed the task status from New to Feedback.Jul 17 2023, 2:04 PM