Jump to content
Sign in to follow this  
Emerald

Vehicle Respawn Script

Recommended Posts

Number of times to respawn script (not mine).

 

VS1 is the marker name

first 4 number of times respawned

second 4 delay

west is side

 

 

// veh = [this, "VS1", 4, 4, west] execVM "customization\vehicle.sqf";

if (isNil { BIS_fnc_init }) then { waitUntil { !isNil { BIS_fnc_init } } }; 

_killed = _this select 0;
_pos = getMarkerPos (_this select 1);
_delay = _this select 2;
_times = _this select 3;
_side = _this select 4;
_veh = typeof _killed;

for "_i" from 1 to _times do {

hint "Mission Start";

waitUntil {not alive _killed or not canMove _killed};

sleep _delay;

_group = createGroup _side;

_killed = [_pos, 330, _veh, _side] call BIS_fnc_spawnVehicle;

_killed = _killed select 0;

if (_times == 0) exitWith {};

_times = _times - 1;

hint "Wave Spawn";

};

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...