mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Compiles.sqf cleanup
- Moved player_countMagazines to \compile\ folder - Removed several unused and obsolete files - Moved some epoch functions out of compiles.sqf into individual files - Synced order and formatting with 1.8.7. Much easier to compare now. Any changes I make to official DayZ Mod code and files I also submit as a pull request to them.
This commit is contained in:
11
SQF/dayz_code/compile/fnc_getSetPos.sqf
Normal file
11
SQF/dayz_code/compile/fnc_getSetPos.sqf
Normal file
@@ -0,0 +1,11 @@
|
||||
//DO NOT USE IF YOU NEED ANGLE COMPENSATION!!!!
|
||||
private "_pos";
|
||||
|
||||
_thingy = _this select 0;
|
||||
_pos = getPosASL _thingy;
|
||||
|
||||
if (surfaceIsWater _pos) then {
|
||||
_thingy setPosASL _pos;
|
||||
} else {
|
||||
_thingy setPosATL (ASLToATL _pos);
|
||||
};
|
||||
Reference in New Issue
Block a user