mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
108ff4f644
Regex used: \[(.+?),(.+?),(.+?)\]\s+call\s+E?FUNC\((common,)?(target|object)Event\) [$1,$3,$2] call CBA_fnc_targetEvent E?FUNC\((common,)?(server|global|local)Event\) CBA_fnc_$2Event E?FUNC\((common,)?(add|remove)EventHandler\) CBA_fnc_$2EventHandler
26 lines
484 B
Plaintext
26 lines
484 B
Plaintext
/*
|
|
* Author: KoffeinFlummi
|
|
* Pushes a boat away from the player
|
|
*
|
|
* Arguments:
|
|
* 0: Boat <OBJECT>
|
|
* 1: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [Boats, Jose] call ace_interaction_fnc_push
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_boat", "_unit"];
|
|
|
|
private _newVelocity = vectorDir _unit;
|
|
_newVelocity set [2, 0.25];
|
|
_newVelocity = _newVelocity vectorMultiply 2;
|
|
|
|
["setVelocity", [_boat, _newVelocity], [_boat]] call CBA_fnc_targetEvent;
|