Page MenuHomeFeedback Tracker

triggerAttachedVehicle only returns value with "Owner Only"
New, NormalPublic

Description

triggerAttachedVehicle returns <NULL-object> on triggers when Activation is not set to "Owner Only", whether there is a "Set Trigger Owner" or not.

Details

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

Create a trigger in the editor (SP/MP), name this "t1".

Create a unit, then connect the trigger to the unit with Connect>Set Trigger Owner.

Set the trigger activation to any option other than "Owner Only" (i.e. Whole Group/Group Leader/Any Group Member)

Run the mission.

In the Debug Console, in the watch values, type: triggerAttachedVehicle t1

Additional Information

There seems to be no other way to reference the unit to trigger connection. Please advise if this is / is not the case.

I need access to this connection information in order to release a new mod, and to fix another mod. Please tell me there will be a way around this?

Thanks for reading.

Event Timeline