ACE3/addons/interaction/functions/fnc_push.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
500 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
params ["_boat", "_unit"];
private _newVelocity = vectorDir _unit;
_newVelocity set [2, 0.25];
_newVelocity = _newVelocity vectorMultiply 2;
[QEGVAR(common,setVelocity), [_boat, _newVelocity], [_boat]] call CBA_fnc_targetEvent;