Search the Community
Showing results for tags 'BIS_fnc_modulesector'.
Found 2 results
-
How to setFlagTexture and control flag animation
beako posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
HI All, In the BIS_fnc_moduleSector under the parameter setting #6 it describes the following: 6: _onOwnerChange (String) - Code as STRING that runs when a sector is captured, code is passed [ _sector, _owner, _old Owner ] in _this, code is also run at sector initialisation _owner will be default owner and _oldOwner will be sideUnknown I'm tried to insert the following code that lowers the _oldOwner flags then raises the _owner flags but the module seems to override the setFlagTexture function, and I cannot raise the flag once it hits the bottom. //Code as STRING that is run when sector changes ownership [ "_onOwnerChange", " private _flagsArray = (_this select 0) getVariable 'flags'; private ['_flagSideTexture']; _flagSideTexture = ''; switch (_this select 2) do { case EAST : {_flagSideTexture = '\A3\Data_F\Flags\Flag_CSAT_CO.paa'}; case WEST : {_flagSideTexture = '\A3\Data_F\Flags\Flag_NATO_CO.paa'}; default {_flagSideTexture = '\A3\Data_F\Flags\Flag_white_CO.paa'}; }; {_x setFlagTexture _flagSideTexture} forEach _flagsArray; {[_x, flagAnimationPhase _x - 1, 0.1] call BIS_fnc_animateFlag} forEach _flagsArray; switch (_this select 1) do { case EAST : {_flagSideTexture = '\A3\Data_F\Flags\Flag_CSAT_CO.paa'}; case WEST : {_flagSideTexture = '\A3\Data_F\Flags\Flag_NATO_CO.paa'}; default {_flagSideTexture = '\A3\Data_F\Flags\Flag_white_CO.paa'}; }; {_x setFlagTexture _flagSideTexture} forEach _flagsArray; {[_x, flagAnimationPhase _x + 1, 0.1] call BIS_fnc_animateFlag} forEach _flagsArray; ", [ "" ] ], Any ideas on how I can do this? Ideally I would like the old owner's flag to lower completely, then replace the texture with the new owner and raise to the top, to match the BIS_fnc_moduleSector vertical bar animation. -
Multiplayer sector module problem
target_practice posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I have been making a mission that involves sectors that are captured in a linear order. This is achieved by having a trigger that monitors the owning side of the sector. When the owner changes to a certain side (in this case BLUFOR) the trigger executes enableSimulation false on the sector, and then activates a second sector module to which the trigger is synced. In multiplayer however, the second sector fails to initialise resulting in an endless loading screen. On single player though it works fine. All other modules spawn without issue on multiplayer. Although I believe I have narrowed down the issue to the sector module being activated by the trigger, not only does the fact this happens baffle me, but also the fact it doesn't occur in SP. I would really appreciate any help with this as its driving me mad. I can also post screenshots of the mission configuration if it helps.