stk-code_catmod/data/scripts/haybail.as
2014-06-11 11:58:57 +05:30

17 lines
620 B
ActionScript

void onTrigger()
{
/*to activate this add the following line to stk-assets/farm/scene.xml
<object type="action-trigger" action="haybail" distance="30.0" xyz="100.72 10.20 -26.22" hpr="0.0 -0.0 0.0" scale="7.00 7.00 7.00"/>
*/
displayMessage("Haybail deactivated");
//disableAnimation("hayBail.b3d");
//track_obj_manager.disable("hayBail.b3d","mesh");
//track_obj_manager.disable("hayBail.b3d");
TrackObject @t_obj = getTrackObject("hayBail.b3d");
t_obj.setEnable(false);
PhysicalObject @hay = t_obj.getPhysicalObject();
squashKart(0,35.0); //id of kart,time to squash
}