ACE3/addons/compat_sog/functions/fnc_handleBikeMinePlace.sqf
Filip Maciejewski a7d8c3eb3a
Compat SOG - Make compat auto load if DLC is present (#9204)
* Move SOG compat to addons/

* Set component to skip loading when SOG not present

* Use skipWhenMissingDependencies for GRAD Trenches compatiblity

* Tools - Add SOG dlc launch config

* move trenches to sub config, handle grad with 2nd subconfig

* fix `Land_vn_b_prop_fueldrum_01` UBC

* use ifndef

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-03 11:31:45 -05:00

29 lines
567 B
Plaintext

#include "script_component.hpp"
/*
* Author: veteran29
* Handle placement of bike mine object.
*
* Arguments:
* 0: Bike mine <OBJECT>
*
* Return Value:
* None
*
* Example:
* [bikeMine] call ace_compat_sog_fnc_handleBikeMinePlace
*
* Public: No
*/
params ["_mine"];
if (!local _mine) exitWith {};
// change COM to have the bike upright like the placed mine
_mine setCenterOfMass [0,0, -0.5];
// prevent the object from swinging left and right
[{isTouchingGround _this}, {
_this setVelocity [0,0,0]
}, _mine, 3] call CBA_fnc_waitUntilAndExecute;