mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
401 B
Plaintext
19 lines
401 B
Plaintext
//#define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
|
|
private["_pos", "_atl"];
|
|
|
|
PARAMS_2(_stake,_action);
|
|
|
|
_atl = getPosATL _stake;
|
|
if ((_atl select 2) <= -1.75 && {_action < 0}) exitWith { };
|
|
if ((_atl select 2) >= 0 && {_action > 0}) exitWith { };
|
|
|
|
_pos = getPos _stake;
|
|
_pos set[2, (_pos select 2) + _action];
|
|
|
|
_stake setPos _pos;
|
|
{
|
|
_x reveal _obj;
|
|
} forEach playableUnits;
|