Event action on waypoints...
Posted: Wed Jul 08, 2026 4:30 pm
https://forums.matrixgames.com/viewtopi ... 8#p5282118
Posted this in Lua Legion a few days ago with no response after 40 reads. So posting in the broader forum to get more exposure.
From the post:
"in 1825, we got this new feature:
ADDED: You can now assign an event action to a waypoint.
- The unit can be obtained by the usual ScenEdit_UnitX().
- The waypoint action is a dropdown of the event actions.
- The triggering unit and WP IDs are passed as a local Lua table 'wpAction'. The full details can be accessed thru the SE functions using the unit (wpAction.unit) and wp (wpAction.wp) GUIDs.
Is there an example of this being used anywhere?
Also, is there a plan to update the lua CMO reference doc?"
Posted this in Lua Legion a few days ago with no response after 40 reads. So posting in the broader forum to get more exposure.
From the post:
"in 1825, we got this new feature:
ADDED: You can now assign an event action to a waypoint.
- The unit can be obtained by the usual ScenEdit_UnitX().
- The waypoint action is a dropdown of the event actions.
- The triggering unit and WP IDs are passed as a local Lua table 'wpAction'. The full details can be accessed thru the SE functions using the unit (wpAction.unit) and wp (wpAction.wp) GUIDs.
Is there an example of this being used anywhere?
Also, is there a plan to update the lua CMO reference doc?"