Jump to content

Search the Community

Showing results for tags 'if...then'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Virolahti
  • TKO's Livonia
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 1 result

  1. Hi all. I have been playing since flashy and did very basic editing over the years (triggers and a lot of borrowing from others), but at 36 now I seemingly have the urge to slowly learn how to do more complex stuff, but that also means I have limited time between watch repair and normal life! Anyway, the issue I'd appreciate some help with is something I'm sure is very simple, or whatever it is could someone be kind enough to explain their process a little or what I'm doing wrong. I don't want to just copy and paste if you know what I mean, but this is something I have tried to understand from Fockers Arma Scripting tutorial. I have a civilian playable with allowDamage false; I am watching a while loop spawn individual soldiers for both sides and then just kill each other. The while loop does this while my variable of _total <20 is being assessed. I have countAllUnits as the defined variable for _total, but it doesn't count the actual amount of units being created. Why is that, please? My issue I'd like to sort is that once I trigger the while loop from my civi player addAction and I see the units spawn, I don't want to have to repeat the addAction to 'top-up' the _total. I'd like it somewhat dynamic, so some kind of sleep before repeating the process is all my unaware script mind can think of! Hope someone can guide me. Cheers. _total = count allUnits; hint format ["Total units in game:%1",_total]; sleep 4; _grp = createGroup West; _grp2 = createGroup East; _blds = nearestBuilding AmmoSups; while {_total <20} do { sleep 1; _newsoldier = "B_Soldier_GL_F" createUnit [getPos _blds,_grp]; hint format ["Units in game:%1", _total]; _newsoldier2 = "O_support_MG_F" createUnit [getPos AmmoSups,_grp2]; hint format ["Units in game:%1", _total]; sleep 1; _grp setFormation "STAG COLUMN"; _grp setBehaviour "AWARE"; _wp = _grp addWaypoint [position AmmoSups,0]; _total = _total +1; sleep 0.5; }; hint "while loop complete."; if I local exec the hint for the total I get the actual amount which I don't want it to be so high (above 20), but I also don't want it to drop below 20 alive players at any point. A perpetual war if you will... :)
×