2015-04-12 18:29:33 +00:00
|
|
|
/*
|
|
|
|
* Author: jaynus
|
|
|
|
* Handler function for laser network code.
|
|
|
|
*
|
|
|
|
* Argument:
|
2015-08-15 21:53:04 +00:00
|
|
|
* 0: Emitter <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-08-28 10:58:53 +00:00
|
|
|
* 0: position <ARRAY>
|
2015-08-15 21:53:04 +00:00
|
|
|
* 1: direction <ARRAY>
|
|
|
|
*
|
|
|
|
* Public: No
|
2015-04-12 18:29:33 +00:00
|
|
|
*/
|
2015-04-12 18:01:22 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-08-15 21:53:04 +00:00
|
|
|
private["_gunnerInfo", "_turretInfo"];
|
|
|
|
params ["_emmiter"];
|
2015-04-12 18:01:22 +00:00
|
|
|
|
|
|
|
_gunnerInfo = [_emmiter, (currentWeapon _emmiter)] call CBA_fnc_getFirer;
|
|
|
|
_turretInfo = [_emmiter, _gunnerInfo select 1] call EFUNC(common,getTurretDirection);
|
2015-08-15 21:53:04 +00:00
|
|
|
_turretInfo params [["_povPos", -1], ["_povDir", -1]];
|
2015-04-12 18:01:22 +00:00
|
|
|
|
2015-08-15 21:53:04 +00:00
|
|
|
[_povPos, _povDir]
|