示例#1
0
        public void DriveTo(GrandTheftMultiplayer.Server.Elements.Vehicle veh, float x, float y, float z, float speed)
        {
            pedHandle.DriveTo(veh, x, y, z, speed);

            API.deleteColShape(destColShape);
            destColShape = API.createCylinderColShape(new Vector3(x, y, z), 2.5f, 2.5f);
            destColShape.onEntityEnterColShape += onDestinationReached;
        }