Jump to content

Search the Community

Showing results for tags 'local'.



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

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

  1. Hi, I'm trying to set up a minefield module via script. I get an error when using local variables while everything works fine with global variables. If anyone could tell why that'd be great. Here's my code : POP_fnc_Minefield = { if ((typename _this != "ARRAY") or (count _this < 3)) exitWith {hint format ["Error : POP_fnc_Minefield argument : %1", _this];}; _MineGroup = createGroup [(_this select 0), true]; _pos = _this select 1; _FieldSize = _this select 2; if (count _this <= 3) then {_NbMines = floor(_FieldSize/2);} else {_NbMines = floor(_FieldSize/2*(_this select 3));}; if (count _this <= 4) then {_MineType = "APERSMine";} else {_MineType = this select 4;}; if (count _this <= 5) then {_FieldCond = TRUE;} else {_FieldCond = _this select 5;}; _Minefield = "Site_Minefield" createUnit [ _pos, _MineGroup, format [ "this setVariable ['minescount', '%1']; this setVariable ['minestype', '%2']; this setVariable ['axisa', '%3']; this setVariable ['axisb', '%3']; this setVariable ['shape', 'Rectangle']; this setVariable ['side', 'Independent']; this setVariable ['marked', 'Friendlies']; this setVariable ['conditionofpresence', '%4'];", _NbMines, _MineType, _FieldSize, _FieldCond ] ]; }; This code throws undefined variable errors but if replace _NbMines, _MineType, _FieldCond with NbMines, MineType, FieldCond then everything seems to work fine.
  2. Hey! I've been trying to make a IED script that uses a triggerman instead of the commonly found pressure plate. So far it's early in "development" but eventually I'm aiming for it to become dynamic and able to spawn random death traps all over the chosen map. The problem I've encountered and need help with is that my local variable doesn't work in a trigger. // Pick a spawnpoint _spawnPoint = selectRandom [ "spawn_garage", "spawn_hotel", "spawn_hotel_2", "spawn_shop", "spawn_office", "spawn_binocular", "spawn_suicide", "spawn_minaret", "spawn_wall" ]; // Spawn IED man _bomberGroup = createGroup [East, True]; _bomber = _bomberGroup createUnit ["LOP_AM_OPF_Infantry_Engineer", getMarkerPos _spawnPoint, [], 0, "CAN_COLLIDE"]; _bomberGroup setBehaviour "careless"; //removeAllWeapons _bomber; _bomber setCaptive true; _bomber disableAI "MOVE"; _bomber setUnitPos "UP"; _bomber_weapon = currentWeapon _bomber; // Custom scripts depending on which spawnpoint is chosen switch (_spawnPoint) do { case "spawn_garage": { hint "GARAGE"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 4.040]; }; case "spawn_hotel": { hint "HOTEL"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 3.798]; }; case "spawn_shop": { hint "SHOP"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 4.292]; }; case "spawn_office": { hint "OFFICE"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 5.787]; }; case "spawn_binocular": { hint "BINOCULAR"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 3.403]; }; case "spawn_suicide": { hint "SUICIDE"; }; case "spawn_minaret": { hint "MINARET"; _bomber setPos [getPos _bomber select 0, getPos _bomber select 1, 19.424]; }; case "spawn_hotel_2": { hint "HOTEL_2"; }; case "spawn_wall": { hint "WALL"; }; default { hint "ERROR! No spawnpoint chosen"; }; }; // Make bomber face IED _dir = _bomber getDir IED_L; _bomber setDir _dir; _bomber setFormDir _dir; // Spawn weapon next to bomber //_wh = "WeaponHolderSimulated" createVehicle position _bomber; //_wh addWeaponCargoGlobal ["rhs_weap_akm",1]; //_wh addMagazineCargoGlobal ["rhs_30Rnd_762x39mm",1]; //_wh setPos (getpos _bomber); _wh = "GroundWeaponHolder_Scripted" createVehicle position _bomber; _wh setPosAtl (getPosATL _bomber); _bomber action ["DropWeapon", _wh, _bomber_weapon]; // Create a trigger on triggermans position to make him combat any player that gets close // ###THIS IS WHERE IT GETS FUCKY### _trgr_bomber_1 = createTrigger ["EmptyDetector", getPos _bomber, true]; _trgr_bomber_1 setTriggerArea [10, 10, 0, false]; _trgr_bomber_1 setTriggerActivation ["ANYPLAYER", "PRESENT", false]; _trgr_bomber_1 setTriggerStatements ["this", "hint 'trigger start'; _bomber selectWeapon '_bomber_weapon'; _bomber enableAI 'MOVE'; _bomber setUnitPos 'AUTO'; _bomberGroup setbehaviour 'COMBAT'; _bomber setCaptive false;", "hint 'trigger end'"]; // Testing to see if set to careless because he kept on throwing grenades // Somehow AI still do that in careless I guess? sleep 5; _b = behaviour _bomber; hint format ["%1", _b]; /* ACE Detonation Needs to be fixed No clue how to use this at all // Connect explosives to bomber [_bomber, IED_L, "Cellphone"] call ace_explosives_fnc_connectExplosive; sleep 30; // Boom? [{ ["_bomber", "3000", "IED_L", "0", "Cellphone"]; true }] call ace_explosives_fnc_addDetonateHandler; */ Basically, if you can understand my mess, I have two issues 1: the "_trgr_bomber_1" doesn't know what "_bomber" is so it can't make him pickup a gun and activate standard AI combat. 2: AI still throw grenades at me like 17th century grenadiers even though they're set to "CARELESS". Any help would be greatly appreciated and I'm pretty sure it's an easy fix for anyone who's actually a coder.
  3. Hello fellow editors, Im working now for hours on a simple script that must activate a trigger. It works fine on my localhost, but not on my server. I can't get it to work. Could you please take a look at it and help me out. There are probatly hunderds of topics about this subject, but I seached for hours and can't figger it out. (Noob :P) ------------------------------------------------------------------------------------------ Talk script: // Quick animation. titleText ["You: You are not allow to stand here, please move back to the barrier","PLAIN DOWN"]; 10; sleep 8; titleText ["Civilian: Alright, ill go.","PLAIN DOWN"]; 10; Civbar1=true; _gen = _this select 0; _caller = _this select 1; _id = _this select 2; _gen playmove "AidlPercSnonWnonDnon_talk1"; ------------------------------------------------------------------------------------------ initServer: // ============= Variables Civbar1 = false publicVariable "Civbar1"; Civbar2 = false publicVariable "Civbar2"; Civbar3 = false publicVariable "Civbar3"; ------------------------------------------------------------------------------------------ Trigger: variable name: Civbar1 Condition: Civbar1 on Act: rocivbar1 enableAI "move"; rocivbar2 enableAI "move"; rocivbar3 enableAI "move"; trigger has a waypoint activation set ------------------------------------------------------------------------------------------ Civilian: variable name: rocivbar1 init: talk1 = this addaction ["Tell civilians to move behind barrier","Scripts\interaction\Civi\CivBar1.sqf"];
  4. Hello guys, I have a mission with an integrated construction system. Players can build fortifications, I use createVehicle locally on the client for that. Some of the created objects also have eventHandlers attached to them. I now want to allow saving and later resuming the mission. I got it mostly working, however 2 questions remain: 1. Will objects created using createvehicle on a client be saved and restored? 2. I read somewhere that variables added via setVariable will be saved, what about eventHandlers though? Do I have to redo them after resuming the mission from a savegame? Thanks for all tips and guidance in advance, you guys have been of so much help already! Leander
  5. Hey guys! I have a mission where players can choose to be blufor, opfor and independent. Each leader of a faction has an endtrigger synced to them that should end the mission when the unit enters it. I have the triggers and debriefing working fine in singleplayer, but in multiplayer I am not able to force the end on the clients even though I use [endMission, "END1" ] call BIS_fnc_MP; in the respective trigger for each side. What am I doing wrong? I found a lot of threads where people say to execute the functions on the clients, but I just can't seem to grasp how to do this. Cheers!
  6. As part of a multiplayer mission, there's a downed AAF pilot. The unit is setUnconscious, and had a "revive" option. Here is it's .init: if isServer then {this setUnconscious true;}; this addAction [ "<t color='#B70000'>Revive</t>", { _help = [_this select 0,_this select 1] execVM "law\pilotRevive.sqf"; pilotRevive = true; }, "",0,true,true,"","(side _this == west) && (lifeState _target == 'INCAPACITATED')",3 ]; pilotRevive.sqf the following. params [["_casualty",objNull],["_caller",objNull]]; if ((isNUll _caller) || (isNUll _casualty)) exitWith {}; if (isMultiplayer) then { (_caller) playMove "AinvPknlMstpSnonWnonDnon_medic0"; sleep 5; (_casualty) setUnconscious false; (_casualty) playMove "AinjPpneMstpSnonWnonDnon_rolltofront"; sleep 4; //was 3 (_casualty) playMove "AmovPpneMstpSnonWnonDnon_AmovPercMstpSnonWnonDnon"; sleep 5.25; //was 1.25 [_casualty,""] remoteExec ["switchMove",0,true]; (_casualty) enableAI "ALL"; (_casualty) setUnitPos "UP"; (_casualty) setHit ["legs", 1]; (_casualty) doMove [6675.358,11257.388,0]; sleep 2; (leader group (_caller)) groupChat "The pilot thanks us."; sleep 3; (leader group (_caller)) groupChat "He says we can go. He will radio for CasEvac."; sleep 1; } else { (_caller) playMove "AinvPknlMstpSnonWnonDnon_medic0"; sleep 5; (_casualty) setUnconscious false; (_casualty) playMove "AinjPpneMstpSnonWnonDnon_rolltofront"; sleep 4; (_casualty) playMove "AmovPpneMstpSnonWnonDnon_AmovPercMstpSnonWnonDnon"; sleep 5; (_casualty) switchMove ""; (_casualty) enableAI "ALL"; (_casualty) setUnitPos "UP"; (_casualty) setHit ["legs", 1]; (_casualty) doMove [6675.358,11257.388,0]; sleep 2; (leader group (_caller)) groupChat "The pilot thanks us."; sleep 3; (leader group (_caller)) groupChat "He says we can go. He will radio for CasEvac."; sleep 1; }; The events work fine in singleplayer; the unit rolls over, gets up and hobbles to the position with his injured leg. In multiplayer, he currently goes from down to up with no transition, and his lifestate remains unconscious. I think i'm not really understanding what needs to be executed where here. I tried executing the playMove's on each client before but I was getting reports that the unit was getting stuck in a loop of different animations and ultimately ended up still lying face down. But then I saw that playMove has a global effect, so I stopped executing it on all clients. Except now the intermediate actions all seem to be having no effect, and the sleep commands didn't seem to appear. Help would be much appreciated, since I can only test this properly on the community test server which is a pain to keep doing. Thanks, Law
  7. Hi! So here's my problem: I want a script to execute only for players within hearing distance of a NPC The script will be executed from another script, the latter being launched from an addaction. I want the script to execute only on the machines of players nearby but obviously can't use a trigger area to count them. How should I go about it?
  8. Welcome, To keep this short : _hit = 0 I want this variable to increase everytime the object _Str been hit. _Str addEventHandler ["HitPart",{_hit = _hit + 1}]; This doesn't work because the EH doesn't know the localvariable. _Str addEventHandler ["HitPart",{hit = hit + 1}]; This does work because it is a globalvariable. But i need it to be a localvariable, because there are 200 objects that are being spawned using the same variable. waitUntil {_Hit > 3}; deletevehicle _Str; I want the obj to delete itself after being hit 3 times. Is there workaround that i can use? Or maby a different way to approach this? Draoth
  9. Hello lads! I'm currently making / modifying a coop mission in ArmA 3, most stuff works so far, managed to find most stuff i needed in the Forums already. Now i have a little problem, it has been explained a few times already, but i just can't seem to understand it somehow :P How can i manage to make stuff sync between all connected users ? e.g. i have some "addaction" stuff used in my mission, but some of these actions are only executed on the local client side, and not globally for all of the players. As far as i know, i will have to somehow send information (for ex. briefcase collected, which would be a addaction) to the server in which i set a server variable (for ex. briefcase_collected) to a specific value, in this case 1 / true. Then the server would share this information with all collected clients, and by changing the value of the variable, the clients would know that this task has been completed, and it would show the next. I just have no idea how i do this in arma, i am trying for quite some hours now but just can seem to get it right. I thank all of those that give me some hints in advance! B) - PsychOrange
×