21 lines
631 B
Plaintext
21 lines
631 B
Plaintext
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;
|
|
|
|
};
|
|
}; |