Browse Source

add vr objects to zeus

thefloff 4 years ago
parent
commit
c070a47f31

+ 3 - 0
addons - Copy/RD501_Main/functions/movable_scripts/droideka_driver.sqf

@@ -18,6 +18,9 @@ if (isServer) then {
 	_aidrive setBehaviour "CARELESS";
 	[_aidrive, true] remoteExec ["hideObjectGlobal", 0];
 
+	_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)

+ 4 - 0
addons - Copy/RD501_Main/functions/movable_scripts/dwarf_spider_droid_driver.sqf

@@ -17,6 +17,10 @@ if (isServer) then {
 	_aidrive setUnitPos "down";
 	_aidrive setBehaviour "CARELESS";
 	[_aidrive, true] remoteExec ["hideObjectGlobal", 0];
+
+	_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)

+ 3 - 0
addons - Copy/RD501_Main/functions/movable_scripts/og10drive.sqf

@@ -23,6 +23,9 @@ if (isServer) then {
 	_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)