Sign in to follow this  
Don Cooper

Delteing Vehicles using Debug Console

1 post in this topic

i'm currently working on a script that deletes vehicles when a staff member actives it though the debug console the current code i have so far is this but i want it to detect if a player is either 25m close to the vehicle it wont delete or if a player is within the vehicle it wont delete or even both would be nice if some one can help me with it that would be nice and i would much appreciate it. also i have this line here witch i think might work but i'm not sure " { aCertainUnit in crew _x } count thisList>0; "

 

myList = nearestObjects [player, [ 
"Exile_bike_QuadBike_Black", 
"Exile_bike_QuadBike_Black", 
"Exile_bike_QuadBike_Blue", 
"Exile_bike_QuadBike_White", 
"Exile_bike_QuadBike_Nato", 
"Exile_bike_QuadBike_Csat", 
"Exile_bike_QuadBike_Fia", 
"Exile_bike_QuadBike_Guerilla01", 
"Exile_bike_QuadBike_Guerilla02", 
"Exile_Bike_MountainBike", 
"Exile_Bike_OldBike", 
"Exile_Car_Kart_Black", 
"Exile_Car_Kart_Yellow", 
"Exile_Car_Kart_White", 
"Exile_Car_Kart_Orange", 
"Exile_Car_Kart_Blue", 
"Exile_Car_Kart_Green", 
"Exile_Car_Kart_Vrana", 
"Exile_Car_Kart_RedStone", 
"Exile_Boat_RubberDuck_CSAT", 
"Exile_Boat_RubberDuck_Digital", 
"Exile_Boat_RubberDuck_Orange", 
"Exile_Boat_RubberDuck_Blue", 
"Exile_Boat_RubberDuck_Black", 
"Exile_Boat_MotorBoat_Police", 
"Exile_Boat_MotorBoat_Orange", 
"Exile_Boat_MotorBoat_White",  
"Exile_Car_Kart_BluKing" 
], 25000]; {deletevehicle _x}forEach myList;

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.