Jump to content

'X:Cockpit parameter in range' Trigger Script


Recommended Posts

Posted (edited)

Hey all,

Anyone know if a way I can capture the 'X:Cockpit parameter in range' ME trigger in a lua script?

I'd rather have a script which I can refine and implement into multiple missions rather than have to re-create multiple ME triggers..

 

Thanks!

Edited by ldwater
Posted

There is a Unit.getDrawArgumentValue() method on the unit tree that might do what you want. Be advised that all "X-" conditions in mission trigger rules are intended for single-player missions, the values hare hard to come by, there is no guarantee that getDrawArgument is indeed the same X:Cockpit Parameter, and that he mission scripting environment hates you. 

The rest should be simple 🙂

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...