-
Content Count
483 -
Joined
-
Last visited
-
Medals
-
Medals
Everything posted by roy86
-
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Yep, TFAR and ACRE are supported. -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Aaand some more... Cheers, -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Lol more to come ;) Another video shortly Cheers, -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
We're almost there :D Video of aircraft loadout has finished uploading. -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Thanks guys, once Beta is out, I might take you up on that. I want a lot of variety and can't do it all. -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Almost done! Cheers!! -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
Of course! I built one as part of the virtual depot. The new update has a lot of new commands so now I need to refine the UI, add some more features and should be good to go. Works in SP and MP. Here is a quick video of how it works (in test mode) Although... I do like what he's done. Might have a chat with GOM and see if we can share ideas. Cheers, -
Spawn or Teleportto New Carrier?
roy86 replied to DieselJC's topic in ARMA 3 - MISSION EDITING & SCRIPTING
To spawn/teleport to the deck of the carrier, I use setVehiclePosition command. Command: vehicle player setVehiclePosition [<carrier_pos>,[],0,"None"]; Tested and approved with MapClick ;) Try it in mission and regardless of the elevation, if you click anywhere on the carrier, you will be on its deck at that location. OnMapSingleClick "vehicle player setVehiclePosition [[_pos select 0, _pos select 1, 0],[],0,""None""]"; -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Updated first post with working version!! -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
No worries. Glad we got it in the end. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Get rid of the "marker_0" it breaks the command syntax. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok.. after a bit of test, fix and learn, this now seems to work. Try this.... Init.sqf if (isServer) then { private _carrier = createVehicle ["Land_Carrier_01_base_F",getMarkerPos "marker_0",[],0,"None"]; _carrier setPosWorld getMarkerPos "marker_0"; _carrier setDir 270; [_carrier] call BIS_fnc_Carrier01PosUpdate; ["Carrier %1 Found. Server Initilising.",_carrier] call BIS_fnc_logFormatServer; missionNamespace setVariable ["USS_FREEDOM_CARRIER",_carrier]; publicVariable "USS_FREEDOM_CARRIER"; } else { [] spawn { waitUntil { !(isNull (missionNamespace getVariable ["USS_FREEDOM_CARRIER",objNull])) }; ["Carrier %1 Found. Client Initilising.",USS_FREEDOM_CARRIER] call BIS_fnc_logFormatServer; if (count (USS_FREEDOM_CARRIER getVariable ["bis_carrierParts", []]) == 0) then { ["Carrier %1 is empty. Client Fixing.",str "bis_carrierParts"] call BIS_fnc_logFormatServer; private _carrierPartsArray = (configFile >> "CfgVehicles" >> typeOf USS_FREEDOM_CARRIER >> "multiStructureParts") call BIS_fnc_getCfgDataArray; private _partClasses = _carrierPartsArray apply {_x select 0}; private _nearbyCarrierParts = nearestObjects [USS_FREEDOM_CARRIER,_partClasses,500]; { private _carrierPart = _x; private _index = _forEachIndex; { if ((_carrierPart select 0) isEqualTo typeOf _x) exitWith { _carrierPart set [0,_x]; }; } forEach _nearbyCarrierParts; _carrierPartsArray set [_index,_carrierPart]; } forEach _carrierPartsArray; USS_FREEDOM_CARRIER setVariable ["bis_carrierParts",_nearbyCarrierParts]; ["Carrier %1 was empty. Now contains %2.",str "bis_carrierParts",USS_FREEDOM_CARRIER getVariable ["bis_carrierParts", []]] call BIS_fnc_logFormatServer; }; [USS_FREEDOM_CARRIER] spawn { sleep 1; _this call BIS_fnc_Carrier01Init}; }; }; -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've worked out the problem. now just have to build a scripted work around -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've tested this and it spawned with actions: if (isServer) then { USS_FREEDOM_CARRIER = createVehicle ["Land_Carrier_01_base_F",[7577.91,2066.26,0],[],0,"None"]; USS_FREEDOM_CARRIER setPosWorld [7577.91,2066.26,0]; USS_FREEDOM_CARRIER setDir 270; [USS_FREEDOM_CARRIER] call BIS_fnc_Carrier01PosUpdate; publicVariable "USS_FREEDOM_CARRIER"; } else { [] spawn { waitUntil {!(isNull (missionNamespace getVariable ["USS_FREEDOM_CARRIER",objNull]))}; [USS_FREEDOM_CARRIER] call BIS_fnc_Carrier01Init; }; }; -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Your position is wrong. use brackets e.g. [7577.91,2066.26,0] -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
That doesn't really solve the issue with locality. Try this in the init.sqf if (isServer) then { USS_FREEDOM_CARRIER = createVehicle ["Land_Carrier_01_base_F",<position>,[],0,"None"]; USS_FREEDOM_CARRIER setPosWorld <position>; USS_FREEDOM_CARRIER setDir <degree>; [USS_FREEDOM_CARRIER] call BIS_fnc_Carrier01PosUpdate; publicVariable "USS_FREEDOM_CARRIER"; } else { [] spawn { waitUntil {!(isNull (missionNamespace getVariable ["USS_FREEDOM_CARRIER",objNull]))}; [USS_FREEDOM_CARRIER] call BIS_fnc_Carrier01Init; }; }; By making the server create the object and then share it with each of the clients to then run the init, I'm hoping this will solve the issue. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Part has to be spawned by the server. Client has to wait and then run a function to add the actions. I have worked out the solution, just need to test then I'll post. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Cables and doors are models and operate differently. The whole launch process is scripted, hence the addAction locality in MP is an issue for the catapults when spawning via script. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's the script that spawns the carrier does not support spawning in-game. It requires the actual ship to be placed. Will have to write a custom one that adds the actions across the network so that it works in MP. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's the local actions not being created across the network. Going to have to write a little bit of code ;) I'll post it up once ready. -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK, without writing my own function, I think I've worked it out. Remove the "isServer"!! it is already factored in the object spawning so should be ok. Now we just to check JIP so let me know. I've updated the first post to reflect this. Cheers mate, yep one and the same ;) glad you liked it. -
large [SP/MP][COOP] Patrol Operations - Official Thread
roy86 replied to roy86's topic in ARMA 3 - USER MISSIONS
http://arma.roy86.com.au/index.php/Patrol_Operations -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
wierd. Will test and see what I can do ;) -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
carrier01Init is automatically executed when the carrier spawns. That is how all the object segments of the carrier get put together. If you see the carrier in game, it means that script has executed already. You should not need to do anything. How are you spawning the carrier exactly? -
Spawn Aircraft Carrier 'USS Freedom' Jets DLC
roy86 replied to roy86's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Can't say I've had a problem with the functions of the ship yet. Catapults work fine as well as the cables slowing down. the defenses are separate objects that need to placed on to the carrier. If someone gets me the offset positions I can write a script to place them.