ACE3/addons/interaction/functions/fn_push.sqf

23 lines
389 B
Plaintext
Raw Normal View History

2015-01-11 19:32:51 +00:00
/*
* Author: KoffeinFlummi
*
* Pushes a boat away from the player.
*
* Arguments:
* 0: Boat (object)
* 1: Velocity (vectorlike array)
*
* Return Value:
* None
*/
2015-01-11 23:13:47 +00:00
#include "script_component.hpp"
2015-01-11 19:32:51 +00:00
_boat = _this select 0;
_velocity = _this select 1;
if !(local _boat) exitWith {
2015-01-11 23:13:47 +00:00
[_this, QUOTE(FUNC(push)), _boat] call EFUNC(core,execRemoteFnc);
2015-01-11 19:32:51 +00:00
};
_boat setVelocity _velocity;