TriXter-9fcad23cb89cb108
Member-
Content Count
4 -
Joined
-
Last visited
-
Medals
Everything posted by TriXter-9fcad23cb89cb108
-
enableSimulationGlobal on Ded-server
TriXter-9fcad23cb89cb108 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi, I'm completely and utterly incompetent at this! This is my first attempt at doing something like this. The idea is that this should be implemented on an Arma 3 Exile server. What I'm trying to do is a script for a so-called base defense. I have placed "in edior" an x number of mines on a field and disable simulation on these. (inside "mission.sqm") And I have then added an addaction on "INIT" to a object ----------------------------------------------------------------------------------- Addaction on object -----------------------------------------------------------------------------------------------------------------------------------------------------------P1 addAction ["<t color='#ded51f'>Activate Minefields", "Mine\ActivateMine.sqf",P1 removeAction (_this select 2)] remoteExec ["execVM",1,true]; Then I have two sqf files Activate.sqf and Deactivate.sqf ------------------------------------------------------------------------------------------------------------------------ Activate.sqf --------------------------------------------------------------------------------------------------------------------------------hintSilent parsetext format ["<br /><t align='center' color='#de2c1f' size='2,5'>•• MINEFIELDS ACTIVATED ••</''"]; P1 addAction ["<t color='#ded51f'>Deactivate Minefields", "Mine\DeactivateMine.sqf", P1 removeAction (_this select 2)] remoteExec ["execVM",1,true]; [P1, ["Activate", 1000, 1] ] remoteExec ["say3D"]; _Obj= ["AT1"AP1"]; // AT1 =ATMine AP1=APERSBoundingMine these are placed and name in Editor and disabled the simulation. So these are in the Mission.sqm file. So these spawn at every restart and are disabled. {_x enableSimulationGlobal true;} forEach _Obj; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hints and sounds work but the simulation on the mines doesn't work =( -
enableSimulationGlobal on Ded-server
TriXter-9fcad23cb89cb108 replied to TriXter-9fcad23cb89cb108's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK thx for the info! But can i hide these mines under ground and the lift them up when i activate? _Obj = [AT1, AP1]; _x setposATL [getPosATL _x select 0,getPosATL _x select 1,(getPosATL _x select 2)+5] forEach _Obj ; -
enableSimulationGlobal on Ded-server
TriXter-9fcad23cb89cb108 replied to TriXter-9fcad23cb89cb108's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks a lot, I really appreciate your help! But the mines still don't get activated "enableSimulation" =( I have no idea what I'm doing, but I've tried this and a few others, but none have worked except in the editor { [_x, true] remoteExec ["enableSimulation", 0, true]; } forEach _Obj; { [_x, true] remoteExecCall ["enableSimulationGlobal", 0] } forEach _Obj; and a few others, but none have worked except in the editor It works in the editor but nothing happens on the server. as before hint, addaction works fine in the editor and server. -
enableSimulationGlobal on Ded-server
TriXter-9fcad23cb89cb108 replied to TriXter-9fcad23cb89cb108's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thnx 😃 But still don't work on the server. Hint and sound works just fine but the mine don´t work =( but everything work if i run it in editor.