Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

twiggy158

Member
  • Content Count

    46
  • Joined

  • Last visited

  • Medals

Everything posted by twiggy158

  1. Hello, I am trying to find a way to use the Spawn AI module with the Apex Syndicat units. Is there a way to spawn actual Syndikat units? I found a way to give the AAF units one particular uniform from the Syndikat group with the following code in the expression: Synd = _this select 0; { loadout = [_x, configfile >> "CfgVehicles" >> "I_C_Soldier_Bandit_1_F"] call BIS_fnc_loadinventory; } forEach units Synd; This only spawns units with one gear type however. Is there a way to set what units can spawn through the mission.sqm? Any help would be much appreciated. Thanks, Twiggy
  2. Hello, I am trying to find a way to use the Spawn AI module with the Apex Syndicat units. Is there a way to spawn actual Syndikat units? I found a way to give the AAF units one particular uniform from the Syndikat group with the following code in the expression: Synd = _this select 0; { loadout = [_x, configfile >> "CfgVehicles" >> "I_C_Soldier_Bandit_1_F"] call BIS_fnc_loadinventory; } forEach units Synd; This only spawns units with one gear type however. Is there a way to set what units can spawn through the mission.sqm? Any help would be much appreciated. Thanks, Twiggy
  3. I'm having trouble getting this script to work. I'm fairly new at scripting in ArmA 3 so I'm not entirely sure if I have everything setup right. Here's what it looks like: publicVariable "bluReady"; publicVariable "opReady"; // ignore this bit flag_op addAction ["<t color='#ff1111'>Teleport</t>", "Scripts\teleport.sqf" ]; flag_us addAction ["<t color='#ff1111'>Teleport</t>", "Scripts\teleport.sqf" ]; // *************************************** flag_us addAction ["<t color='#ff1111'>Team Ready</t>", { bluReady = true } ]; flag_op addAction ["<t color='#ff1111'>Team Ready</t>", { opReady = true } ]; if (bluReady) then { MessageText = "Blufor is Ready."; [MessageText,"hint",nil,true] call BIS_fnc_MP; }; if (opReady) then { MessageText = "Opfor is Ready."; [MessageText,"hint",nil,true] call BIS_fnc_MP; }; if (bluReady && opReady) then { MessageText = "Both teams ready. Beginning match in 5 seconds."; [MessageText,"hint",nil,true] call BIS_fnc_MP; sleep 5; execVM "Scripts\teleportBlufor.sqf"; execVM "Scripts\teleportOpfor.sqf"; }; The main issue lies with the boolean in the addAction lines. They don't work, and for the life of me I can't figure it out. I've searched up and down for a similar issue and haven't had much luck.
  4. Thank you so much! I didn't realize you need to declare it as a publicVariable each time. And thank you for cleaning up the code and adding the wait timer! Much appreciated!
  5. I've been trying to find a way to respawn players once a side is killed, but not before the entire side is dead, for a PvP. Say if Blufor kills all of Opfor, I want it to respawn all players back into their starting locations. I can't find anything about getting the respawns to trigger only if an entire side is dead. Here is the script so far: // Declare Variables private ["_playerList", "_playerCount", "_westPlayers", "_eastPlayers"]; _playerList = playableUnits; _playerCount = count _playerList; _westPlayers = west countSide _playerList; _eastPlayers = east countSide _playerList; // Display total amount of players in game. As well as on each side. if (_playerCount > 0) then { gamelogic1 globalChat format["%1 player(s) in this match", _playerCount]; sleep 1; gamelogic1 globalChat format["%1 player(s) are BLUFOR", _westPlayers]; sleep 1; gamelogic1 globalChat format["%1 player(s) are OPFOR", _eastPlayers]; }; // Check if West score is higher than East Players. If not, check if East score is higher than West Players while{true}do { if ( ({(side _x) == east} count allUnits) == 0 ) then { gamelogic1 globalChat "BLUFOR wins the round!"; sleep 5; gamelogic1 globalChat "Respawning players..."; sleep 3; {if (side _x == west) then {_x setDamage 1};} foreach allunits; westFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; eastFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; } else { if ( ({(side _x) == west} count allUnits) == 0 ) then { gamelogic1 globalChat "OPFOR wins the round!"; sleep 5; gamelogic1 globalChat "Respawning players..."; sleep 3; {if (side _x == east) then {_x setDamage 1};} foreach allunits; westFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; eastFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; }; }; }; Right after where it kills the units is where I would want the players to respawn at their original starting locations. I'm still fairly new at scripting in ArmA so for all I know this script is horribly done for what I want it to do. Just to clarify what I mean by respawning once a side is dead; once the round begins, you basically have one life that round, when you die, you turn into a seagull or whatever, but once either your team wins or loses by killing or losing all the players on the team then you respawn into a new round. Thank you guys in advance.
  6. How do I tell the script to revive the units elsewhere? This is my biggest problem with what I'm trying to do because I can't find anywhere how to respawn / revive though a command in a script.
  7. Hah yeah probably. I will give that a go and see how it works. Thanks for the help.
  8. Basically what I want this script to do is check and see how many players are in the server, as well as on each side. It then needs to monitor the score to see if the opposing teams score reaches or passes the player amount on that team (Such as OPFOR having two people, and BLUFOR's score is 2, it will set #West section of the script to true). When it becomes true, the "round" will end and kill the winning players so they re-spawn. It doesn't seem to be happening though. It will correctly give me the amount of players on the server as well as per team, but when the score reaches the amount of players on the opposing team, nothing happens. This is my first time really attempting to script so I realize this may not be the most effective way of achieving this, but any advice would be great. I can't seem to find a decent way to debug this even with using the UODebugger. Thanks in advance! I also realize that there may be some redundant variables in there, but i was my first time using them so I wanted to make sure I knew how to get them to work. // Declare Variables private ["_playerList", "_playerCount", "_westPlayers", "_eastPlayers", "_scoreWest", "_scoreEast"]; _playerList = playableUnits; _playerCount = count _playerList; _westPlayers = west countSide _playerList; _eastPlayers = east countSide _playerList; _scoreWest = scoreSide west; _scoreEast = scoreSide east; // Display total amount of players in game. As well as on each side. if (_playerCount > 0) then { gamelogic1 globalChat format["%1 player(s) in this match", _playerCount]; sleep 1; gamelogic1 globalChat format["%1 player(s) are BLUFOR", _westPlayers]; sleep 1; gamelogic1 globalChat format["%1 player(s) are OPFOR", _eastPlayers]; }; // Check if West score is higher than East Players. If not, check if East score is higher than West Players #West if (_scoreWest >= _eastPlayers) then { gamelogic1 globalChat "BLUFOR wins the round!"; sleep 5; gamelogic1 globalChat "Respawning players..."; sleep 3; {if (side _x == west) then {_x setDamage 1};} foreach allunits; _scoreWest = 0; westFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; eastFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; } else { if (_scoreEast >= _westPlayers) then { gamelogic1 globalChat "OPFOR wins the round!"; sleep 5; gamelogic1 globalChat "Respawning players..."; sleep 3; {if (side _x == east) then {_x setDamage 1};} foreach allunits; _scoreEast = 0; westFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; eastFlag addAction ["Ready","Scripts\spawnBarrier.sqf"]; } else { goto "West"; }; }; TL;DR: Something is wrong with the section under #West. Can't figure out what though.
  9. Bump. Any help would be great.
  10. Ah thank you for that! But how would I go about making the chat work properly? And as far as splitting the scripts what would I have to split from this script? Sorry for the obvious questions but I have very little experience with being this in depth with scripting in Arma.
  11. I tried that and it doesn't seem to be looping. I have to manually start the script again to get it to execute that part. I also noticed that the chat messages aren't appearing to everyone in the server. only to whoever started the script. Also, the score doesn't seem to reset either, but I have no idea how to go about resetting the side scores. Also on a side note, are there any good debugging tools to see if something is going wrong in the script?
  12. For flying I've always used an Xbox 360 controller, and I would use the X button to lock onto target. Now as of recently, I can no longer lock on to targets using my controller. I have to press TAB on my keyboard to lock on, even though both TAB and X on my controller are bound to the same action. I have even tried different buttons on the controller with no luck. Anyone else having this problem?
  13. I was editing a 7th Cav Domination West Revive mission and was wanting to add the AI recruiting part from the West AI Domi. When in the editor, I see an invisible H with the name AISPAWN where I'm guessing the AI Barracks spawns. Does this mean that the mission had AI in it and it's just disabled somehow? Any help would be much appreciated.
  14. I am currently editing a version of Domination that is already been modified by 7th Calvary and TAW. The mission is built off the West Revive version of Domination. My question is how would I combine this mission with the West AI version to where I could recruit AI in this mission and yet still have all the edited things done by TAW, 7th Calvary and I? I see a spot in the base where an invisible H is places called AISPAWN and I'm guessing that's where the barracks is supposed to be, but it isn't in game.
  15. I've been trying to start a dedicated server using a modified version of Domination, it works fine when I host it directly, but when I start a dedicated server and select the same mission it doesn't work, as if the scripts weren't working. For instance, the Domination intro screen won't play and some of the vehicles will not spawn, thanks in advance for the help.
  16. Just a quick somewhat unrelated question; Do I have to own two copied of Arma 2 and Operation Arrowhead if I wanted to host the server using a different computer? Like say I use my desktop for the gaming and a laptop to dedicate the server to? Or could i just simply copy the files over to the laptop?
  17. So that the OA directory and the Arma 2 Directory and put them in the same spot? Also, I bought Arma 2 on Steam but I'm using the downloaded Server to launch it, I'll try what you say and let you know. ---------- Post added at 07:53 PM ---------- Previous post was at 07:34 PM ---------- That fixed the issue. Thanks for your help!
  18. Well I have the Steam version of ArmA 2 and OA, so how it has the two games installed are like this: And from what I've seen the normal retail copy installs Operation Arrowhead into the ArmA 2 directory. So from what I've read I need to add the -mod= line to the server so it loads ArmA 2 as well. ---------- Post added at 07:23 PM ---------- Previous post was at 06:16 PM ---------- Turns out it has something to due with launching Combined Operations on the server, I'm not sure how to go about that using the steam version.
  19. I downloaded it from playing on a 7th Calvary server and edited a few things, the mission itself works fine when I host it directly but when I run the Dedicated Server it doesn't. Even when I download the COOP Domination pack those missions won't work either. Also, it seems that no matter what I do, the server also keeps making it's own .cfg with this inside it: NOTE: The map I am using needs combined ops to play, and I am using the Arma 2 OA Dedicated Server to run this map using the -mod=Arma2 location
  20. twiggy158

    The Undead Mod

    Any way I could get a copy of this mission you guys are using? I've been waiting for a zombie mission forever for ArmA 2.
  21. twiggy158

    Is It A Model Bug or Just Me?

    Ah I was just wondering. Thanks for the help!
  22. I started up Arma 2 OA and noticed that some of the models have pretty crappy textures on them. I'm not sure if it's me or the game. Everything in my settings are maxed out. It seems to be with the British Armed Forces units. Could it be because I don't have that DLC but I have it's "Lite" version?
  23. I was wondering on how to create a simple EVO style rearm/repair/refuel script to where when a player lands at the runway at the airport that it rearms them and such. I have very little scripting knowledge so that's why I am asking you guys. And if at all possible could you give me a little walkthrough on what some of the variables do? Helping me would be much appreciated! Thanks!
  24. I can't connect to servers because when patching I accidentally clicked no on installing Battleye and now I can't find anywhere to download it unless I reinstall ArmA and repatch it. Is there any stand alone download for Battleye?
×