Search the Community
Showing results for tags 'bis_fnc_animateflag'.
Found 2 results
-
What I am trying to do is create a flag capturing system using the BIS_fnc_holdActionAdd. So I am currently testing to see if, while playing as an FIA BLUFOR unit, I can take an AAF flag down from a flagpole and swap it with an FIA flag. I am hoping I can get the animation of the flag coming down the pole, then once it has reached the bottom, swap with an FIA flag, then rise back up the pole, all while using the hold action button. If the unit lets go of the action button, the flag goes back to the top as if nothing has changed. If the flag is already an FIA flag, then the hold action button should not appear. This should be the same if I am playing an AFF Independent unit, except it is only FIA flags that can be captured. I currently have the hold action working, I am just not sure about how to use the BIS_fnc_animateFlag to move the flag down, swap it, then move it back up to the top.
- 2 replies
-
- bis_fnc_holdactionadd
- capture
- (and 10 more)
-
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.