mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
464 B
Plaintext
28 lines
464 B
Plaintext
/*
|
|
* Author: KoffeinFlummi
|
|
* Pushes a boat away from the player
|
|
*
|
|
* Arguments:
|
|
* 0: Boat <OBJECT>
|
|
* 1: Velocity <ARRAY>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [target, [vector]] call ace_interaction_fnc_push
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
_boat = _this select 0;
|
|
_velocity = _this select 1;
|
|
|
|
if !(local _boat) exitWith {
|
|
[_this, QUOTE(FUNC(push)), _boat] call EFUNC(common,execRemoteFnc);
|
|
};
|
|
|
|
_boat setVelocity _velocity;
|