- Messages
- 231
- Country

Hi Guys!
I am using this code to control the VC tail hook lever part in my fs9 mkmdl.parts file
The code works well when the part is clicked on, Vc lever and tailhook both animate and the sound plays. But when I try the tail hook keyboard command, ' , only the tail hook part itself animates.
How do I get the VC tail hook lever and sound to respond to the keyboard command?
Carl
I am using this code to control the VC tail hook lever part in my fs9 mkmdl.parts file
Code:
<part>
<name>TailHookLever</name>
<animation>
<parameter>
<code>(L:TailHookLever, bool) 100 *</code>
<lag>100</lag>
</parameter>
</animation>
<mouserect>
<cursor>Hand</cursor>
<tooltip_text>Tailhook</tooltip_text>
<callback_code>
(L:TailHookLever, bool) ! (>L:TailHookLever, bool)
(>K:TOGGLE_TAIL_HOOK_HANDLE)
1 (>L:XMLSND15,enum)
</callback_code>
</mouserect>
</part>
The code works well when the part is clicked on, Vc lever and tailhook both animate and the sound plays. But when I try the tail hook keyboard command, ' , only the tail hook part itself animates.
How do I get the VC tail hook lever and sound to respond to the keyboard command?
Carl


