21 lines
641 B
Plaintext
21 lines
641 B
Plaintext
if(isServer) then {
|
|
"SPAZ" addPublicVariableEventHandler {_this select 1 call Spawn_Ebike};
|
|
|
|
Spawn_Ebike = {
|
|
|
|
private["_spawnPos","_spawnDir","_veh","_goat"];
|
|
|
|
_spawnPos = _this select 1;
|
|
_spawnDir = _this select 2;
|
|
_veh = createVehicle["Ebike_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;
|
|
|
|
};
|
|
}; |