mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-03-03 12:10:22 +00:00
fixing import duplicity and order; accommodations for air vehicles and their spawn pads
This commit is contained in:
parent
6047b9e054
commit
f4343bbf0d
3 changed files with 6 additions and 8 deletions
|
|
@ -27,7 +27,7 @@ class VehicleSpawnControlFinalClearance(pad : VehicleSpawnPad) extends VehicleSp
|
|||
self ! VehicleSpawnControlFinalClearance.Test(entry)
|
||||
|
||||
case VehicleSpawnControlFinalClearance.Test(entry) =>
|
||||
if(Vector3.DistanceSquared(entry.vehicle.Position.xy, pad.Position.xy) > 100.0f) { //10m away from pad
|
||||
if(Vector3.DistanceSquared(entry.vehicle.Position, pad.Position) > 100.0f) { //10m away from pad
|
||||
trace("pad cleared")
|
||||
context.parent ! VehicleSpawnControl.ProcessControl.GetNewOrder
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue