Activity Posted March 25 Share Posted March 25 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? Link to post Share on other sites
Grimes Posted March 25 Share Posted March 25 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: Scripting Wiki, Something... Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread), SLMOD, IADScript, Mission Editing Wiki!, Mission Building Forum Link to post Share on other sites
Activity Posted March 28 Author Share Posted March 28 Alright, thanks for the answer! Link to post Share on other sites
Recommended Posts