Epoch_Server/Server/@epochhive/addons/ud/fn_deploybicycle.sqf

21 lines
631 B
Plaintext
Raw Permalink Normal View History

2020-02-18 16:55:40 +00:00
if(isServer) then {
"SPAZ2" addPublicVariableEventHandler {_this select 1 call Spawn_bike};
Spawn_bike = {
private["_spawnPos","_spawnDir","_veh","_goat"];
_spawnPos = _this select 1;
_spawnDir = _this select 2;
_veh = createVehicle["MBK_01_EPOCH", _spawnPos, [], 0, "NONE"];
_veh allowDamage false;
_veh setPos _spawnPos;
_veh setDir _spawnDir;
_veh setVectorUp (surfaceNormal (getPos _veh));
_veh call EPOCH_server_setVToken;
_veh call EPOCH_server_vehicleInit;
_veh setVelocity [0,0,.1];
_veh allowDamage true;
};
};