ACE3/addons/rearm/functions/fnc_makeDummy.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
439 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: GitHawk
* Make a dummy object by disabling collision and turning it.
*
* Arguments:
* 0: Object <OBJECT>
* 1: Vector dirAndUp <ARRAY>
*
* Return Value:
* None
*
* Example:
* [dummy, [[1,0,0],[0,0,1]]] call ace_rearm_fnc_makeDummy
*
* Public: No
*/
params ["_obj", "_dirAndUp"];
_obj setVectorDirAndUp _dirAndUp;
_obj allowDamage false;
ACE_player disableCollisionWith _obj;