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>
|
2015-08-11 03:08:13 +00:00
|
|
|
* 1: Player <OBJECT>
|
2015-01-11 19:32:51 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-08-11 03:08:13 +00:00
|
|
|
* [Boats, Jose] call ace_interaction_fnc_push
|
2015-05-09 02:47:15 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
2015-01-11 19:32:51 +00:00
|
|
|
*/
|
2015-08-11 03:08:13 +00:00
|
|
|
|
2015-01-11 23:13:47 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-08-11 03:08:13 +00:00
|
|
|
params ["_boat", "_player"];
|
|
|
|
|
|
|
|
private ["_newVelocity"];
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-08-11 03:08:13 +00:00
|
|
|
_newVelocity = [2 * (vectorDir _player select 0), 2 * (vectorDir _player select 1), 0.5];
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-08-11 03:08:13 +00:00
|
|
|
[QGVAR(pushBoat), [_boat], [_boat, _newVelocity]] call EFUNC(common,targetEvent);
|