ACE3/addons/rearm/functions/fnc_makeDummy.sqf

24 lines
439 B
Plaintext
Raw Permalink Normal View History

#include "..\script_component.hpp"
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
*/
params ["_obj", "_dirAndUp"];
2015-08-16 21:52:37 +00:00
_obj setVectorDirAndUp _dirAndUp;
_obj allowDamage false;
ACE_player disableCollisionWith _obj;