Jump to content

Search the Community

Showing results for tags 'spawn'.



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
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Die Hard OFP Lovers' Club's Topics
  • 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

XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 68 results

  1. Hello! I'm new to Arma scripting but having a background in scripting for web apps and such I find this to be such a good hobby. Anyways, I'm currently trying to spawn some opfor units on a specified location (Which I have done correctly or at least works). After they all spawn I want them to start patrolling the area within a specified range from they're spawn location. Now, I have looked at numerous youtube videos and found a couple of scripts on the internet that i could just copy and paste; But I'm really trying to learn and not have to hack my way during every scenario. Could someone please review my code and point out what I'm doing wrong and correct it so I can try to learn the logic behind the corrections? So far this is what I'm trying... Spawn units on location (infSpawn) from designated list array (_opUnitList) Use a selector variable to pick from list, then updating the selector to reflect the value of the next object in array. After each unit spawns that unit is added to a second list of spawned units (_opUnitSpawned) From the spawned list, use a forEach to cycle through and assign them the patrol task. Everything is working besides the patrol task. I get the "Error Undefined variable in expression: _grp from SpawnGroups.sqf line 40" _opUnitList = [ "CUP_O_TK_INS_Soldier", "CUP_O_TK_INS_Mechanic", "CUP_O_TK_INS_Soldier_FNFAL", "CUP_O_TK_INS_Bomber", "CUP_O_TK_INS_Soldier_MG", "CUP_O_TK_INS_Sniper", "CUP_O_TK_INS_Soldier_TL", "CUP_O_TK_INS_Commander", "CUP_O_TK_INS_Soldier_AT", "CUP_O_TK_INS_Guerilla_Medic" ]; _opUnitSpawned = []; _total = (count _opUnitList); _rnd = 0; for [{_x = 1}, {_x <= 10}, {_x = _x + 1}] do { _pick = _opUnitList select _rnd; hint "Spawning Soldier"; sleep 0.5; grp = createGroup east; _newSoldier = _pick createUnit[position infSpawn, grp]; _opUnitSpawned = _opUnitSpawned + [_pick]; _rnd = _rnd + 1; }; { [group this, position infSpawn, 50] call bis_fnc_taskpatrol; } forEach _opUnitSpawned; hint "Done!";
  2. Hello, So here is the deal, i am making a mission.sqm for my server Malden_life, so first i have the choice between IA and Player on the caracter selection tab, Then more important i don't have any spawn what so ever ... (i have made a copy of everything on the map on Tanoa_life.tanoa and put it into Malden_Life.malden i spent at least 9 hours of retouching positionning ect ... and my players simply just spawn were every player spawn on the server ... If anybody could help me i would be so gratefull !!!. Thanks for your time. Later.
  3. Hello everyone! I need some help with scripting. I want to put several enemy squads against a fortified position that must be stopped. But in order not to mass to many enemy units on the ground and prevent fps from dropping down I want to make these enemy units spawn for... let's say... a couple of times after one of the units (entire group) is dead. In my case - enemy boats crossing a river. When one of the boats is disabled, destroyed or the enemy group on board is eliminated, this action should work only a few more times no matter which group is destroyed, so after this condition of destruction is completed for several times, they must stop spawning again. The better idea or solution would be if all enemy groups stop spawning after some time, for example 10 minutes. In this 2nd case - the players receives a task to hold the enemy for 10 minutes (or in the first case to hold X waves/boats). I know how to put the spawn module, but I am not sure if it consist any options to make this action repeat random number of times, for example. Would you help me? Cheers!
  4. Good evening everyone ! I've got a few problems with my mission. I need to make a mission that is playable in local with 8 players in total. I've put my two playable teams of 4 player each (with respawn points specific for each team and respawn points synchronised to each member of the groups) and put objects (building and vehicles) and triggers (with timers) in order to make my mission. I've got Eden Enchanced installed and I've put scripts (description.ext, init.sqf, initServer.sqf, loadout.cpp and onPlayerRespawn.sqf). Here are my problems: -When people are joining and the host launches the mission, even though the host can play the mission, players joining them are stuck to the mission loading screen (put they can still hear the ambient sounds of the mission). I later found out that if I remove the possibilty for people to revive their squadmates, this problem doesn't exist anymore (although it's annoying that i have to do that for making my mission work). But this leads to the second problem... -When people who joined are in the lobby when the mission starts, they will spawn as seagulls. If they join the server during the mission, they will spawn as normal soldiers. There, sorry everyone to have disturbed you and I hope that you can help me solve this problem asap. If you need other infos, you can ask me. Have a good night !
  5. Hello, I am looking for a solution for spawning a flashbang effect, possibly on a marker, invisible helipad or possibly using any other way that works best and can be customized for future use. So far I was trying to spawn the grenade using the createVehicle command and getting a position of a marker. Two problems I have are: - Flash/stun grenades do not explode on spawn, they appear for a few seconds and then disappear entirely (I've checked smoke as well as frag grenades and those two do work fine) - The command spawns a literal grenade which can be seen physically, whereas I am looking for it to either explode on spawn (for the grenade itself not to be seen) or for it to trigger only the effect instead. The command is supposed to be a supplement to door breaching on action and is supposed to affect AI as well. I believe that the effects of the ACE M84 grenades do, so that would be the ideal solution. Thanks for any suggestions! Adam
  6. Hello I want to spawn a icon on map after a trigger is fired i want to spawn the markers -> standard draw -> pickup (hd_pickup) i have looked thru the WIKI but have not found anything that helps me. any one who can give me the solution..
  7. Hi!, sry for my bad english, i am looking for a script to do : A training camp, with a Addaction start the training, then spawn "X" IA unit in random location inside, also a addaction where you can restart training or delete training,. I have the training camp , and the random location with marks, but idk how to spawn unit inside and how delete. anyone know a script or something for this pls?, Thanks you very muchS!!
  8. Hello, I'll try to make this as simple as possible: I'm wondering if there's a way to have a trigger disabled at first, and later enabled by another trigger. In other words, "spawn" a trigger. Imagine you're going through a corridor, nothing happens when you go to the end of the corridor. Then you head back and something happens on the way back. Example: Thanks in advance! :)
  9. GF Custom Loot Position Spawn Script by GEORGE FLOROS [GR] Description: GF Custom Loot Position Spawn Script , spawn Weapons , Mags , Items , to the desired position , configurable script. You are free to do anything but i would like to give me Credits for this! Simple and easy to use and adapt . Have Fun ! Installation / Usage: For usage instructions and information of how to use the GF Custom Loot Position Spawn Script , please refer to the included documentation and/or example mission. Place in your mission the files . There is everything included , inside the mission. https://community.bistudio.com/wiki/SQF_syntax Don't try to open this with the simple notepad. For everything that is with comment // in front or between /* means that it is disabled , so there is no need to delete the extra lines. You can open this ex: with notepad++ https://notepad-plus-plus.org/ and also use the extra pluggins (this way will be better , it will give also some certain colours to be able to detect ex. problems ) http://www.armaholic.com/page.php?id=8680 or use any other program for editing . For the Compilation List of my GF Scripts , you can search in: https://forums.bohemia.net/forums/topic/215850-compilation-list-of-my-gf-scripts/ Notes: Configurable Scripts. Open this mission to the 3D editor and copy paste ( ctrl c - ctrl v ) the item "Land_BakedBeans_F" , wherever you want , the loot to be spawned . There is included a ready Loot List for a vanilla and Ravage. You can also spawn objects. More about , in the info folder inside Information.txt file. Credits & Thanks: Thanks to All script contributors Thanks to everyone who tries to do the best for this game! Thanks to BIS for such a great platform . Thanks to BIS Community and BIS Community Forums . Thanks to Armaholic Community and Forums . Changelog: Version 1.0 Forum topic: - Armaholic forums http://www.armaholic.com/forums.php?m=posts&q=39904 Armaholic download GF Custom Loot Position Spawn Script pics:
  10. Hello friends! A couple of days ago I've ran into some trouble I couldn't solve myself, and I found help here very fast. Right now, I'm at the point where I'm unable to find a solution for some sort of problem, again. What I'm trying to achive, is to spawn a vehicle - the AWC 302 Nyx (Wiesel), to be exactly - with alternate, official texture. The Nyx features the standard AAF-Camo, and alternatively an simple Olive-Camo. Since I'm making a own verison of DUWS - many of you will know what this is -, you will also know how those vehicles do spawn: Go to the headquarters, talk to the officer, choose the vehicle, spend the credits, and the vehicle will spawn outside of the HQ. Heres a little insight of how I try to spawn this vehicle with the alternate Olive-Camo: case 18: { if (commandpointsblu1 >= 28) then { hint "Vehicle ready !"; commandpointsblu1 = commandpointsblu1 - 28; ctrlSetText [1000, format["%1",commandpointsblu1]]; _vehic = "I_LT_01_AA_F" createVehicle _spawnPos; _vehic setObjectTexture [0,"Indep_Olive"]; _vehic setObjectTexture [1,"Indep_Olive"]; _vehic setObjectTexture [2,"Indep_Olive"]; _vehic animate ["showTools", 1]; _vehic animate ["showCamonetHull", 1]; _vehic animate ["showBags", 1]; _vehic animate ["showSLATHull", 0]; } else { hint "Not enough command points"; }; }; If I do place the vehicle in 3den-Editor, change it's visuals like the camo, SLAT-Armour, camonet etc., and then export it, copy paste it somewhere, the Olive-Camo is defined as "Indep_Olive", like above. Exported stuff looks like this: _veh = createVehicle ["I_LT_01_AA_F",position player,[],0,"NONE"]; [ _veh, ["Indep_Olive",1], ["showTools",1,"showCamonetHull",1,"showBags",1,"showSLATHull",0] ] call BIS_fnc_initVehicle; Of course I already found out that this won't work with SetObjectTexture, unfortunately. The vehicle does spawn with all the extras like SLAT-Armour, tools, but with missing textures (At least this showed me, that it somehow works). I then tried different things to achive my goal, changed something here and there, tried to find the path to those textures, etc. Funny enough: It's possible to use this code instead of the old one, and spawn the vehicle with all the extras and the correct textures. Bad thing is, It's spawn behaviour is totally different and all over the place - sometimes even glitches into the HQ. Results in apocalypse. If I'd use the new code instead of the old one, it'd look like this: case 18: { if (commandpointsblu1 >= 28) then { hint "Vehicle ready !"; commandpointsblu1 = commandpointsblu1 - 28; ctrlSetText [1000, format["%1",commandpointsblu1]]; _veh = createVehicle ["I_LT_01_AA_F",position player,[],25,"NONE"]; [ _veh, ["Indep_Olive",1], ["showTools",1,"showCamonetHull",1,"showBags",1,"showSLATHull",0] ] call BIS_fnc_initVehicle; } else { hint "Not enough command points"; }; }; It's a long and already ungrateful journey, and I don't know where else to look, what else to do. If there would be someone to point me in the right direction, or is able to make a functioning code of the examples above - old code or new one, doesn't matter as long as it works and the spawn behaviour is correct and identical to the old one, I'd - again - be more than very thankful. Hope to hear from you folks, enjoy your time! Regards, MajorBlunderbuss.
  11. Hello mates, I hope this is the right place to come to, cause I'm about to get chronical headaches from trying to solve this problem by myself. The last couple of days I'm spending some of my time overhaulin' a version of DUWS (Dynamic Universal War System), and most of the time everything worked like a charm. But right now I'm not able to find a solution for this problem I've ran into. To make my issue more clear, I'd like to be a little bit more specific, so maybe my helping hand is able to fully understand. In DUWS - I guess many of you know this mission - you are able to buy vehicles, units, squads etc. Since I'm reworking some parts of DUWS Unofficial from scratch - esspecially the units, vehicles and squads -, the one who made it in the first place delivered a very nice template for the things I wanted to do. The unofficial version of DUWS has build in mod support, like for RHS Escalation, etc. I have expanded this, by adding in support for some other mods like "Global Mobilization", "BWMod" and "FFAA" . You can play it vanilla, or with those mods. If you have the mods, you can buy the units and vehicles of those factions, if not, a little hint will pop up, telling you that the mod is missing - this is done by checking if the requested unit is available in the first place. Here is a little insight of how it looks for requested foot soldiers: The same goes for vehicles, of course... BUT... here comes my problem: I'm not able to get it to work for requested mod squads - like a fireteam, or a tank platoon. I mean I'm able to get the mod squads working of course, I can buy them and they are fully functional, but I want the game to check if this squad is available in the first place. Otherwise you will pay credits for nothing if the needed mod isn't installed. And since I'm planning to release this version someday, I really want to get this fixed and implemented. And here is a little insight of how it is defined for squads: (Original, only changed the squad and the faction) It's really driving me crazy. I'm no professional programmer, sure, I've learned and catched many things by myself, and I already tried to solve it by myself, but after many failed attempts I can't think of anything else then asking for help, cause I'm running out of ideas. If some mighty coding paladin would be so kind to point me in the right direction, or even take this template above me and make it functioning, I'd really, really appreciate it. I just want it to work like it works for units and vehicles, and I'm sure this is possible. But I can't figure it out. Well, enough said. Have a nice day folks, hope to hear from you! Regards, MajorBlunderbuss.
  12. Hello, i've come along some problems with my missions in multiplayer and now i'm wondering, if there are some workarounds for them. 1. sometimes players can't pick up items from dead bodys. this is a arma classic by now. any ideas how i can minimize the change of it happening? 2. sometimes a mobile spawnpoint (tent) is not available for certain players, while it is for others. also disconnecting and rejoining does not help for the client, who cannot see the spawn point. repacking and resetting the tent does not help either. any ideas? 3. animals (from the animals modules) either don't spawn in MP, or they do spawn but are completely static. i noticed that there are different animal modules, but i haven't had success with either of them. any ideas? i really need some sheep in my missions! 4. the first shot fired from the new VLS on the liberty destroyer doesnt't work. there is a sound and VLS reloads, but the missile does not actually show. the second shot and following shot seem fine. it's not a game-breaker but a bit of an imemrsion killer... 5. not a real issue, but i will add this here, instead of making a seperate thread: a player that entered ZEUS mode, will still have some UI on his screen, even when he leaves ZEUS (i think it is the ticket counter on the right, if i remember correctly). is there a way to limit ZEUS UI to the time actually being in ZEUS mode? thanks for you help:)
  13. Currently using createVehicle to spawn an object under certain conditions. I'm wondering how to create a variable name once it has spawned.
  14. Problem is that even though players can select the respawn position (using Respawn Position module) upon entering the server, they are are spawning on map edge instead. I've used this method successfully in other ops and cannot see what could be causing this. Respawn Position settings Type: Infantry Side: Blufor Show to: Only the side Notification: Disabled //Description.ext respawn = "BASE"; respawnButton = 1; respawnDelay = 5; disabledAI = 1; respawnTemplates[] = {"MenuPosition","Spectator"};
  15. EDIT: Solved. Add waitUntil {triggerActivated StartSpawn}; for "_i" from 1 To 4 do { to the start of the .sqf to limit the number of loops and add sleep 600; to the end, like so: Trying to make an AI group spawn at 1 of 4 locations every 10 minutes when Opfor is present. Currently, Opfor enters condition area, a group spawns correctly, but it seems Opfor has to leave and re-enter the area to trigger another spawn. I want the trigger to loop continuously every 10 minutes so long as Opfor remains present. //Trigger //EnemyWest01.sqf
  16. hello guys, i've run into a strange problem and really have no idea where start to look for a solution! i've my big function container (its a big read, i post it just for the records...): ...it contains all my functions for this mission, but...when i launch mission, it start say that FUNCTION_NAME is not defined (where "FUNCTION_NAME" is the name of one of my functions, that as you can see are defined. i pre-load the file containing the functions in my initServer.sqf : call compile preprocessFile "DDscripts\DWARfunctions.sqf"; null = [] spawn SPAWNERconvoyB; null = [] spawn SPAWNERconvoyR; null = [] spawn SPAWNERciv; null = [] spawn SPAWNERind; null = [] spawn SPAWNERmine; even more strange, i noticed adding >> uiSleep 10; between a function spawn and another, some start to work!! i even started to think its like the functions are not pre-loaded, and server dont recognize them ! but isnt supposed to do this the >> calling compile preProcessFile ... ?? i'm seriously confused....any light on this? thanks !
  17. So I'm making a kind of "shooting range"-scenario with live targets. On one place, I want the players to have the possibility to spawn enemy units. Per now I have a laptop with Init -> I have a SpawnAI-module with VariableName "spawn1", synced with a trigger with condition ->"Spawned" - that starts spawning of 1 enemy AI. When he dies, a new one spawns after 15 seconds. But I can't figure out a 'temporary disable' function. Help?
  18. Hi! I'm having issues spawning in ACE3 IED's with pressure plate activation on. Currently there's 50 IED's that spawn in, they're simulated objects and should (?) work with pressure plate, yet they don't. Here's the faulty script: if (!isserver) exitwith {}; //Theres a marker called center in the middle of the map _centerMrk = "center"; _dist = 25000; _center = getmarkerpos _centerMrk; _counter = 0; _rDist = 5.75; // Objects used as IEDs _iedList = [ "ACE_IEDLandBig_Range", "ACE_IEDLandSmall_Range", "ACE_IEDUrbanBig_Range", "ACE_IEDUrbanSmall_Range" ]; while {_counter < 50} do { //Create position on map for IED _list = _center nearRoads _dist; _iedType = _iedList select (floor random (count _iedList)); _road = _list select (round random (count _list)); _roadDir = getDir _road; _newDir = _roadDir; _dir = _newDir; _pos = getpos _road; _posx = _pos select 0; _posy = _pos select 1; _tx = (_posx + (_rDist * sin(_dir))); _ty = (_posy + (_rDist * cos(_dir))); _iedPos = [_tx,_ty,0]; //Create IED _trgMan = createVehicle ["I_C_Pilot_F", _center, [], 0, ""]; _ied = createVehicle [_iedType, _iedPos, [], 0, ""]; _ied setDir (random 360); _ied setPos getPos _ied; //So far so good, this is where I have to add some type of way to trigger them because they dont work by themselves like if you place them with zeus [_trgMan, _ied, "PressurePlate"] call ace_explosives_fnc_connectExplosive; deleteVehicle _trgMan; //Add IED to list _counter = _counter + 1; }; If anyone with knowledge about ACE3 could help me out that'd be highly appreciated. //Green
  19. I was told to move my thread here. I need a script and all relevant information is in my previous thread: https://forums.bohemia.net/forums/topic/216258-random-spawner/
  20. Hey everyone, I was recently thinking of some kind of ending cinematic to my mission. What I thought about was: 1. Wait until we're all done with the flow of the mission. Usually when the mission is done we gather up in a group to do a quick photo and a small debriefing, so we're technically still in the scenario. 2. When Zeus decides so, the mission would be switched to a cutscene. 3. If possible, a script would grab all the players who survived and put them in predefined places, for example next to some kind of building which was the last objective. 4. Those players would then play certain animations (lying on the ground, sitting, resting after a mission, waving, whatever stuff there is to choose from). 5. During those animations the camera would move a tiny bit here and there and probably show some kind of jet formation flying by. 6. Mission officially ends with the "Mission Complete" screen, some music plays in the background and bang, we're done. Do you think this is possible by any means? I think I would be able to figure out how to teleport the alive players to specific places and have them switchMove to animations, but not sure how to make the camera moving effect as well as how to make it work just after the mission, so to make it seem relatively smooth. If I recall correctly, there is an option in the Editor to choose Scenario, Intro and Outro so I think there's gotta be a way to make them transition between each other and achieve the aforementioned effect but I have no clue how to do that. https://community.bistudio.com/wiki/Eden_Editor:_Scenario_Phases I will be grateful for any kind of help in that regard. Thanks! Adam
  21. Hi , i am looking for a script to building a bunker in few minutes, i wanna do a place where you use a addaction "build defense", than you wait few minutes and spawn a bunker in a specific position,. If posible, also create a task at beginning building and suceedees task at end of the time. Can anyone help me pls¿?¿¿ Thanks you very much!!
  22. Hi there, Using the following code I've been able to spawn groups of AI, easy enough. However, I want to remove the randomness and spawn specific groups, ie. HAF_InfSquad. I've never been able to get it to work, even though according to all the forum topics and BIS own wiki pages, I should be able to do it. if(!isServer) exitWith {}; //======== _groups = "True" configClasses (configFile >> "cfgGroups" >> "Indep" >> "IND_F" >> "Infantry"); //======== systemChat str "inf_script_3 working"; for [{_i=0}, {_i<1}, {_i=_i+1}] do { _randomgroup = selectRandom _groups; _grp = [getMarkerPos "spawn_marker_4", INDEPENDENT, _randomgroup] call BIS_fnc_spawnGroup; { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; _x removeWeapon "launch_I_Titan_F"; _x addPrimaryWeaponItem "acc_flashlight"; _x enableGunLights "forceOn"; } forEach units _grp; _grp addWaypoint [getpos REAPER, 150]; }; What I want to be able to do is this code, but whenever I use this the script runs, and no errors are thrown, but nothing happens: if(!isServer) exitWith {}; //======== systemChat str "inf_script_3 working"; for [{_i=0}, {_i<1}, {_i=_i+1}] do { _randomgroup = selectRandom _groups; _grp = [getMarkerPos "spawn_marker_4", INDEPENDENT, (configFile >> "cfgGroups" >> "Indep" >> "IND_F" >> "Infantry" >> "HAF_InfSquad")] call BIS_fnc_spawnGroup; { _x unassignItem "NVGoggles_INDEP"; _x removeItem "NVGoggles_INDEP"; _x removeWeapon "launch_I_Titan_F"; _x addPrimaryWeaponItem "acc_flashlight"; _x enableGunLights "forceOn"; } forEach units _grp; _grp addWaypoint [getpos REAPER, 150]; };
  23. hello guys, i made a script to spawn/de-spawn AI in a bubble around players, but on long run times (my aim is to make it run at least 24h) server crash with this error : 0xC0000005 - STATUS_ACCESS_VIOLATION after investigating, appears that is a generic error, there is no solution, and probably linked to memory leaks. i tried 100% vanilla server and 100% vanilla client, and server crash in few hours. considering that the server does not crash (24h+) if noone enters....and that the only script difference is that "AI bubble" around players does not spawn any units if there are no players, i take a wild guess and suppose its the "AI bubble" script causing this. here is the script: in init.sqf: call compile preprocessFileLineNumbers "DDscripts\Dbubble.sqf"; null = [] execVM "DDscripts\DambientSPAWN.sqf"; and here is the DambientSPAWN.sqf: this actually works perfectly for few hours (from 1h to 4h usually), then the crash... So i'm doing something "wrong"...and i mean unefficient or causing leaks ? the goal (if possible) it to leave no trace in the memory or in the game itself of the units created and then deleted, or at least minimize the impact on the system to make it run as long as possible. really thansk for any help!
  24. I'm having trouble checking if a player has fully loaded in before exec my script. Using this is working but runs before player has fully loaded in: if not(hasInterface) exitWith {}; waitUntil {!isNull Player}; waitUntil {player == player}; [] spawn { disableSerialization; waitUntil {! (isNull (findDisplay 46))}; if (player nearObjects["Debug_static_F", 25] isEqualTo[]) then // If player not in debug box { _useCinemaBorders = true; showCinemaBorder _useCinemaBorders; _fg = ppEffectCreate ["FilmGrain", 2000]; _fg ppEffectEnable true; _fg ppEffectAdjust [1,20,8,50,50,true]; Camrunning = true; // set to false to stop the camera _radius = 5; // circle radius _angle = 180; // starting angle _altitude = 5; // camera altitude _dir = 0; //Direction of camera movement 0: anti-clockwise, 1: clockwise _speed = 0.04; //lower is faster _duration = 15; // In seconds. Higher number = intro takes longer _cameratarget = position player; private ["_nvg"]; call { if (dayTime > 17 or daytime < 6) exitWith { _nvg = true; }; // If above does not exit, set _nvg true _nvg = false; }; camUseNVG _nvg; _coords = [_cameratarget, _radius, _angle] call BIS_fnc_relPos; _coords set [2, _altitude]; _camera = "camera" camCreate _coords; _camera cameraEffect ["INTERNAL","BACK"]; _camera camPrepareFOV 0.700; _camera camPrepareTarget _cameratarget; _camera camCommitPrepared 0; while {Camrunning} do { _coords = [_cameratarget, _radius, _angle] call BIS_fnc_relPos; _coords set [2, _altitude]; _camera camPreparePos _coords; _camera camCommitPrepared _speed; waitUntil {camCommitted _camera || !(Camrunning)}; _camera camPreparePos _coords; _camera camCommitPrepared 0; _angle = if (_dir == 0) then {_angle - 1} else {_angle + 1}; [_duration, _camera, _fg] spawn { _duration = _this select 0; _camera = _this select 1; _fg = _this select 2; uiSleep (_duration - 0.3); _camera cameraEffect ["terminate","back"]; camDestroy _camera; ppEffectDestroy _fg; }; }; }; }; Need the script to run once the player is visual and has a true position. Its circling around an invisible object and in an location thats not true. Script was made in editor then transfered to a dedicated server. All is work apart from the script runs before the player is created. The devs at desolationredux gave me a hint I need these conditions checked first but now script wont run at all ? while {true} do { if (!isNull player) then { isPlaying = player getVariable ["DS_var_isPlaying", false]; if (isPlaying) exitWith { MY CODE }; }; sleep 1; }; This is what was used when the script wouldn't run at all : if not(hasInterface) exitWith {}; [] spawn { disableSerialization; waitUntil {! (isNull (findDisplay 46))}; while {true} do { if (!isNull player) then { isPlaying = player getVariable ["DS_var_isPlaying", false]; if (isPlaying) exitWith { { _useCinemaBorders = true; showCinemaBorder _useCinemaBorders; _fg = ppEffectCreate ["FilmGrain", 2000]; _fg ppEffectEnable true; _fg ppEffectAdjust [1,20,8,50,50,true]; Camrunning = true; // set to false to stop the camera _radius = 5; // circle radius _angle = 180; // starting angle _altitude = 5; // camera altitude _dir = 0; //Direction of camera movement 0: anti-clockwise, 1: clockwise _speed = 0.04; //lower is faster _duration = 15; // In seconds. Higher number = intro takes longer _cameratarget = position player; private ["_nvg"]; call { if (dayTime > 17 or daytime < 6) exitWith { _nvg = true; }; // If above does not exit, set _nvg true _nvg = false; }; camUseNVG _nvg; _coords = [_cameratarget, _radius, _angle] call BIS_fnc_relPos; _coords set [2, _altitude]; _camera = "camera" camCreate _coords; _camera cameraEffect ["INTERNAL","BACK"]; _camera camPrepareFOV 0.700; _camera camPrepareTarget _cameratarget; _camera camCommitPrepared 0; while {Camrunning} do { _coords = [_cameratarget, _radius, _angle] call BIS_fnc_relPos; _coords set [2, _altitude]; _camera camPreparePos _coords; _camera camCommitPrepared _speed; waitUntil {camCommitted _camera || !(Camrunning)}; _camera camPreparePos _coords; _camera camCommitPrepared 0; _angle = if (_dir == 0) then {_angle - 1} else {_angle + 1}; [_duration, _camera, _fg] spawn { _duration = _this select 0; _camera = _this select 1; _fg = _this select 2; uiSleep (_duration - 0.3); _camera cameraEffect ["terminate","back"]; camDestroy _camera; ppEffectDestroy _fg; }; }; }; }; }; }; sleep 1; }; Any help to what I doing wrong would be amazing ! Cheers
  25. Made a mission like always. Hosted a listen server. My friends join the lobby. We start. Im on the ground as a soldier like normal. Friends are seagulls above their soldier. The ace nametag thing above the soldiers says "error: no unit." I have like a thousand hours in the editor and I have never run into this problem before. My own troubleshooting: I turned respawn off, since seagulls come with the respawn, it still happens. I started up a second instance of arma from my own pc and joined to rule out if my friends had other versions of something, it still happens. When the non-host comes to the point where the map should be visible before mission start, it says "could not connect to the positioning system" or whatever, but all the soldiers I placed have a map so it's like they don't get their gear even. Im thinking maybe something just glitched tf out and I should try to redo the mission with a fresh start. Anyone have a clue? Mods used: CBA ACE3 ALIVE TFAR RHS ASR_AI Kunduz. SOLVED When using doStop in MP on playable characters, all except the host become seagulls. This happens in total vanilla too. I sent a bug-report to BIS.
×