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-12 17:11:43 +00:00
|
|
|
#include "\z\ace\explosives\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 {
|
|
|
|
[_ex, _this select 2, 0] call BIS_fnc_setPitchBank;
|
|
|
|
};
|
|
|
|
//_ex setVectorUp (surfaceNormal _pos);
|