FramedArchitect
Reluctant Modder
I found that the SerialEventUnitCreated/Destroyed hooks trigger every time a unit embarks/disembarks. I would like to disable those hooks in the event that a unit is embarking or disembarking.
While you can detect a unit's current activitytype, none of the instance methods seem to detect a unit's current missiontype. I thought unit:LastMissionPlot might be useful but it always produces runtime error for me.
Is there an efficient way to detect if a unit has just embarked/disembarked?
While you can detect a unit's current activitytype, none of the instance methods seem to detect a unit's current missiontype. I thought unit:LastMissionPlot might be useful but it always produces runtime error for me.
Is there an efficient way to detect if a unit has just embarked/disembarked?