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
    • Arma Reforger
    • 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 Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • 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
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • DayZ Italia's Lista Server
  • DayZ Italia's Forum Generale

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 3 results

  1. My intent is to call reinforcements depending on the number of alive units. I have the reinforcements scripts made as functions. The problem is everything is spawning at the mission start. //ifs.sqf ran from initServer.sqf if ((count allUnits) < 250) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 225) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 200) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 175) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 150) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 125) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 100) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 75) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 50) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; if ((count allUnits) < 25) then { ["reinforcements_incoming"] call BIS_fnc_showNotification; call KIB_fnc_mehSqus; call KIB_fnc_specOps; }; Looks like every if statement is TRUE so everything spawns, maybe ( 225 < (count allUnits) < 250) ? And one additional question, can I call a function two times if I need more reinforcements? call KIB_fnc_mehSqus; call KIB_fnc_mehSqus;
  2. Essentially i'm try to make my own take on an invade and annex server thats team oriented. currently im working on adding a flagpole teleportation mechanic that will teleport you to your squad leader if you have a squad leader and will get you in the fight faster. so ive spent the better part of the day doing this.... im sure some of you are gagging at that, sorry im not very proficient in eden editor....or anything particularily... nonetheless this works as intended except it'll throw an error if there is nobody playing the character with their specific variable attached IE; SquadLeader_1, SquadLeader_2, Pilot, COC, Recon. for what i intend that's fine but i'd like to clean it up and offer a "Teleportation is down right now" for the characters that can teleport atleast. i've been trying to find some way to integrate try throw catch, but cant seem to find a way to set it up proper. any tips?
  3. well, i have been trawling about trying to find this particular problem for a while so i'll ask here: i'm trying to create a script that will spawn and despawn specific objects when player moves in/out of trigger area. originally i did this using separate spawn/despawn scripts but i'm trying to put both scripts in one SQF and select between the two parts using if/then and a variable in the script call. so i created an object "desk1" (which spawned objects attach to) and then created trigger with the following conditions trigger is working fine (i get ping pong) the script "officedesk.sqf" is below. The problem is i keep getting undefined variable errors for the "_stage" (line 7) even though it is defined in the call? i'm pretty confused as to whats going on here, changing _stage to be global doesn't seem to help and i'm.... pretty sure the script call in the trigger is ok? can anybody see what (probably blindingly obvious) thing is going wrong here? EDIT: SOLVED it was NOTHING to do with the error message's which confused me for ages the problem was that if i defined deskArray at the start of the script (before if/then code) 'pushback' didn't work and i was trying to delete and empty array of objects. I just moved it into the if/then code and it works fine with no errors. thing is... 'deskArray' is global so how come i can't define it at code start and then add items in the if/then code? Here's the working script in case anyones bored enough to check it out: p.s. sorry mods, having solved the problem i think the thread title is... inaccurate :D
×