ACE3/addons/rearm/functions/fnc_makeDummy.sqf

24 lines
485 B
Plaintext
Raw Normal View History

2015-08-16 21:52:37 +00:00
/*
* Author: GitHawk
* Make a dummy object by disabling collision and turning it.
2015-08-16 21:52:37 +00:00
*
* Arguments:
* 0: Object <OBJECT>
* 1: Vector dirAndUp <ARRAY>
2015-08-16 21:52:37 +00:00
*
* Return Value:
* None
*
* Example:
* [dummy, [[1,0,0],[0,0,1]]] call ace_rearm_fnc_makeDummy
2015-08-16 21:52:37 +00:00
*
* Public: No
*/
#include "script_component.hpp"
2016-02-01 19:21:20 +00:00
params [["_obj", objNull, [objNull]], ["_dirAndUp", [[1,0,0],[0,0,1]], [[]]]];
2015-08-16 21:52:37 +00:00
_obj setVectorDirAndUp _dirAndUp;
_obj allowDamage false;
ACE_player disableCollisionWith _obj;