2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-02-02 08:35:17 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Sets the Dir and pitch of passed object
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Explosive <OBJECT>
|
|
|
|
* 1: Direction <NUMBER>
|
|
|
|
* 2: Pitch <NUMBER>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [_explosive, 150, 90] call ACE_Explosives_fnc_SetPos;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
private "_ex";
|
2015-02-01 18:38:15 +00:00
|
|
|
_ex = _this select 0;
|
2015-01-11 16:42:31 +00:00
|
|
|
_ex setDir (_this select 1);
|
|
|
|
if ((_this select 2) != 0) then {
|
2015-01-13 10:13:43 +00:00
|
|
|
[_ex, _this select 2, 0] call CALLSTACK(BIS_fnc_setPitchBank);
|
2015-01-11 16:42:31 +00:00
|
|
|
};
|
|
|
|
//_ex setVectorUp (surfaceNormal _pos);
|