datablock TriggerData(FanTrigger)
{
tickPeriodMS = 100;
};
function FanTrigger::onTickTrigger( %this, %trigger, %obj )
{
%obj.addvelocity("0 0 5");
}
datablock TriggerData(FanSlowDownTrigger)
{
tickPeriodMS = 100;
};
function FanSlowDownTrigger::onTickTrigger( %this, %trigger, %obj )
{
%obj.addvelocity("0 0 2");
}
This is the triggers.cs
};
new Trigger() {
position = "209.204 114.093 103.536";
rotation = "1 0 0 0";
scale = "1.87923 2.04568 26.1737";
dataBlock = "FanTrigger";
polyhedron = "0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000";
This is in the mis.