ACE3/addons/rearm/functions/fnc_makeDummy.sqf

24 lines
436 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"
params ["_obj", "_dirAndUp"];
2015-08-16 21:52:37 +00:00
_obj setVectorDirAndUp _dirAndUp;
_obj allowDamage false;
ACE_player disableCollisionWith _obj;