Jump to content

Recommended Posts

Posted

I haven't found anything in the documentation on these two topics. Is it possible to:

 

  1. open and close the Huey doors from Lua?
  2. Set damage to/failure of a particular system from Lua?

Posted

I am not sure how to do it with Lua, but both can be done using triggers in the mission editor:

 

#1: Set the action for the trigger to "X:cockpit perform clickable action(Cockpit Device, Command, Value)"

 

Left Door Open: "X:cockpit perform clickable action(9, 3036, 1)"

Left Door Close: ""X:cockpit perform clickable action(9, 3036, 0)"

 

Right Door Open: "X:cockpit perform clickable action(9, 3035, 1)"

Right Door Close: ""X:cockpit perform clickable action(9, 3035, 0)"

 

 

#2: Set the action for the trigger to "Set Failure", choose one of the available failures and set the failure probability and time frame.

Posted

thanks for that info Griz... the doors work fine locally for "me" but I cannot seem to get it to work for clients on a multiplayer scenario.. although every slot allows it to work for me locally as server.. is there something else needed for client side to pick up this trigger?

Posted

sorry for Hijack... just curious.

 

Can opening the door by the client/player be scripted as a trigger?

 

So that in terms of the troops pickup/drop off the troops only appear after you have opened the doors via button/hot-key that way in MP all clients will see the animation as "door open/ door closed"

  • Recently Browsing   0 members

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