stk-code_catmod/data/scripts/cycle3.as

15 lines
652 B
ActionScript

void onTrigger()
{
/*to activate these 3 scripts add the following lines to stk-assets/20_harvest/scene.xml
<object type="action-trigger" action="cycle1" distance="30.0" xyz="139.86 10.21 80.94" hpr="0.0 -0.0 0.0" scale="7.00 7.00 7.00"/>
<object type="action-trigger" action="cycle2" distance="30.0" xyz="110.86 10.21 50.94" hpr="0.0 -0.0 0.0" scale="7.00 7.00 7.00"/>
<object type="action-trigger" action="cycle3" distance="30.0" xyz="-1.69 10.60 -42.19" hpr="0.0 -0.0 0.0" scale="7.00 7.00 7.00"/>
*/
displayMessage("3 triggered, 1 activated, 2 deactivated");
enableTrigger("cycle1");
disableTrigger("cycle2");
}