You have too on triggers:
function crpg_chopperVehicle::OnTrigger(%this, %obj, %triggerNum, %val)
{
if(%val){
if(%triggerNum == 2){
%pmount = %client.player.getObjectMount();
%pmount.setVelocity(getword(%pmount.getvelocity(),0),getword(%pmount.getvelocity(),1),getword(obj.getvelocity(),2)+0.2);
}
}
}
function Vehicle::addVelocity(%vehicle,%velocity)
{
%vehicle.setVelocity(vectorAdd(%vehicle.getVelocity(),%velocity));
}
function crpg_chopperVehicle::onTrigger(%this,%obj,%client)
{
%obj.addvelocity("0 0 4");
}
The first one is just a mess, delete it. It calls upon a client that doesn't exist. The second one isn't the most efficient, having a function for one vehicle, but it works much better than the first one.