Activity Posted March 25, 2021 Posted March 25, 2021 I'm trying to trigger something when a specific unit fires a weapon, in external lua script I'd make a custom event handler for this but I'm wondering if the same could be done in the mission editor. So using a lua predicate that checks event.initiator == something as a condition for a event based trigger (ON SHOT). Does anyone have any idea if this is at all possible?
Grimes Posted March 25, 2021 Posted March 25, 2021 No. These is nothing within the lua predicate trigger condition that refers to how it was activated or anything like that. You have to add an event handler via do script to check for what you want. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
Recommended Posts