2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-01-12 09:48:26 +00:00
|
|
|
Name: ACE_Explosives_fnc_SetPos
|
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Author(s):
|
|
|
|
Garth de Wet (LH)
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Description:
|
|
|
|
Sets the Dir and pitch
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Parameters:
|
|
|
|
0: OBJECT - Object
|
|
|
|
1: NUMBER - Direction
|
|
|
|
2: NUMBER - Pitch
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Returns:
|
|
|
|
Nothing
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-01-11 16:42:31 +00:00
|
|
|
Example:
|
2015-01-12 09:48:26 +00:00
|
|
|
[_explosive, 150, 90] call ACE_Explosives_fnc_SetPos;
|
2015-01-11 16:42:31 +00:00
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
private "_ex";
|
|
|
|
_ex=_this select 0;
|
|
|
|
_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);
|