mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
18 lines
537 B
Plaintext
18 lines
537 B
Plaintext
/*
|
|
Fixes swimming in ground after spawn, change clothes or relog
|
|
on maps with respawn_west position in water.
|
|
*/
|
|
|
|
private ["_debug","_floor"];
|
|
|
|
_debug = getMarkerPos "respawn_west";
|
|
|
|
if (surfaceIsWater _debug) then {
|
|
_debug set [2,2];
|
|
_floor = "MetalFloor_DZ" createVehicleLocal [0,0,0];
|
|
_floor setPosASL _debug;
|
|
_floor allowDamage false;
|
|
_floor enableSimulation false;
|
|
_floor setVariable ["",true,false]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
|
_floor hideObject true;
|
|
}; |