2015-01-11 19:32:51 +00:00
|
|
|
/*
|
|
|
|
* Author: KoffeinFlummi
|
2015-05-09 02:47:15 +00:00
|
|
|
* Pushes a boat away from the player
|
2015-01-11 19:32:51 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2015-05-09 02:47:15 +00:00
|
|
|
* 0: Boat <OBJECT>
|
|
|
|
* 1: Velocity <ARRAY>
|
2015-01-11 19:32:51 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [target, [vector]] call ace_interaction_fnc_push
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-01-11 19:32:51 +00:00
|
|
|
*/
|
2015-05-09 02:47:15 +00:00
|
|
|
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:14:00 +00:00
|
|
|
PARAMS_2(_boat,_velocity);
|
2015-01-11 19:32:51 +00:00
|
|
|
|
|
|
|
if !(local _boat) exitWith {
|
2015-05-09 02:47:15 +00:00
|
|
|
[_this, QUOTE(FUNC(push)), _boat] call EFUNC(common,execRemoteFnc);
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
_boat setVelocity _velocity;
|