Trying to use a mix of Dirty Sanchez and Ghostrider scripts to spawn specific vehicles at permanent AI bases on Chernarus.
My test script is below and worked for a day and then stopped. Now the Vehicle spawns but disappears when I get within 200m of it.
Question
Guffmaker
Guys,
Trying to use a mix of Dirty Sanchez and Ghostrider scripts to spawn specific vehicles at permanent AI bases on Chernarus.
My test script is below and worked for a day and then stopped. Now the Vehicle spawns but disappears when I get within 200m of it.
if (isServer) then {
_vehicle_99 = objNull;
if (true) then
{
_veh = createVehicle ["B_G_Offroad_01_armed_EPOCH", [12693.5,10058.6,0], [], 0, "CAN_COLLIDE"];
_veh setVariable["LASTLOGOUT_EPOCH",1000000000000];
_veh setVariable["LAST_CHECK",1000000000000];
EPOCH_VehicleSlotsLimit = EPOCH_VehicleSlotsLimit + 1;
EPOCH_VehicleSlots pushBack str(EPOCH_VehicleSlotsLimit);
_slot = EPOCH_VehicleSlots select 0;
_item setVariable ['VEHICLE_SLOT',_slot,true];
EPOCH_VehicleSlots = EPOCH_VehicleSlots - [_slot];
EPOCH_VehicleSlotCount = count EPOCH_VehicleSlots;
publicVariable 'EPOCH_VehicleSlotCount';
_veh call EPOCH_server_setVToken;
};
}:
The .rpt log points to the EPOCH_VehicleSlotsLimit line but I can't see anything wrong.
Any ideas?
Thanks
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now