mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a7d8c3eb3a
* 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>
29 lines
567 B
Plaintext
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;
|