12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "../../config_macros.hpp"
- // Created by Rexi to make things move
- //edited by namenai
- params[
- ["_vic",objNull,[player]]
- ];
- if(isNull _vic) exitWith {
-
- };
- if (isServer) then {
- _group = createGroup east;
- _ai_unit = _group createUnit ["O_Soldier_VR_F", position _vic, [], 0, "CAN_COLLIDE"];
- _ai_unit allowDamage false;
- _vic attachTo [_ai_unit,[0,-0.3,4.8]];
- //_ai_unit AddUniform "SWOP_tacticdroid_black_F_spec";
- [_ai_unit, true] remoteExec ["hideObjectGlobal", 0];
- _ai_unit setUnitPos "down";
- _ai_unit setBehaviour "CARELESS";
- _ai_unit setSpeedMode "LIMITED";
- _ai_unit forceWalk true;
- _curators = objectCurators _vic;
- { _x addCuratorEditableObjects [[_aidrive], true] } forEach _curators;
- _vic addEventHandler ["Killed", {
- params ["_unit", "_killer", "_instigator", "_useEffects"];
- [_unit] spawn macro_fnc_name(remove_attached_objects)
-
- }];
- _vic addMPEventHandler ["MPKilled", {
- params ["_unit", "_killer", "_instigator", "_useEffects"];
- [_unit] spawn macro_fnc_name(remove_attached_objects)
-
- }];
- };
|