Searching through the list of attached objects can be slow depending on how much is attached. Sometimes it better to just know if an object was attached rather than searching all the object. As such I would like to request an event of attaching objects.
objectAttached triggers for the attachedTo object, I.E. attaching a crate to a player, the event triggers on the player. _attachedToObject would be the player, and _attachedObject would be the crate.
this addEventHandler ["objectAttached", { params ["_attachedToObject", "_attachedObject"]; }];
objectAttach triggers for the attached object, I.E. attaching a crate to a player, the event triggers on the crate. _attachedObject would be the crate, _attachedToObject would be the player.
this addEventHandler ["objectAttach", { params ["_attachedObject", "_attachedToObject"]; }];