soulbody Posted April 20, 2010 Report Share Posted April 20, 2010 i want to create a back-up script and need it to assign it to the technical forces ASF typethe script is good the only thing is i dont know the code name for the ASFi have already tried:- VT_THW_ASF- VT_TEC_ASFdoes anybody know what need to be use on the place where i put "TEC" and "THW" Quote Link to comment Share on other sites More sharing options...
Alexx12 Posted April 20, 2010 Report Share Posted April 20, 2010 VT_FireFighters_ASF Quote Link to comment Share on other sites More sharing options...
Hoppah Posted April 20, 2010 Report Share Posted April 20, 2010 http://www.emergency-wiki.de/index.php/Vehicle Quote Link to comment Share on other sites More sharing options...
soulbody Posted April 20, 2010 Author Report Share Posted April 20, 2010 thanks for the answer, topic can be closed, link is bookmarkedLater added:still don't work i get this message:this is a part of the script: Vehicle *theCar = NULL; float bestCar = 0.; VehicleList patrolCars(VT_FIREFIGHTERS_ASF); for (int i = 0; i < patrolCars.GetNumVehicles(); i++) { Vehicle *aCar = patrolCars.GetVehicle(i); if (aCar->GetPlayerMP() == Caller->GetPlayerMP() && !aCar->IsCurrentAnimation("Getoff") && (aCar->HasCommand(CMD_STANDBY_OFF) || aCar->HasCommand(DUMMY_PATROL) || aCar->IsCollidingWithVirtualObject(VO_PARK01) || aCar->IsCollidingWithVirtualObject(VO_PARK02) || aCar->IsCollidingWithVirtualObject(VO_PARK03))) { float distCurrCar = Math::dist(CmdPos.x, CmdPos.y, aCar->GetPosition().x, aCar->GetPosition().y); if (distCurrCar < bestCar || bestCar == 0.) { theCar = aCar; bestCar = distCurrCar; } } } Quote Link to comment Share on other sites More sharing options...
soulbody Posted April 21, 2010 Author Report Share Posted April 21, 2010 someone? Quote Link to comment Share on other sites More sharing options...