Spawn mission crates a little above the ground to try to reduce crate glitches into the ground.

This commit is contained in:
Chris Cardozo 2018-11-19 17:33:05 -05:00
parent a9e861493f
commit 3cf74b2a07

View File

@ -1,11 +1,6 @@
/*
spawn a crate at a specific location
returns the object (crate) that was created.
for ghostridergaming
By Ghostrider [GRG]
Copyright 2016
Last updated 12-5-17
--------------------------
License
--------------------------
@ -24,7 +19,7 @@ _crate allowDamage false;
_crate enableRopeAttach false;
[_crate] call blck_fnc_emptyObject;
uiSleep 1;
_crate setPosATL _coords;
_crate setPosATL [_coords select 0, _coords select 1, (_coords select 2) + 0.25];
_crate setDir _crateDir;
//_crate setVectorUp [0,0,1];
_crate setVectorUp surfaceNormal position _crate;