Jump to content

snowmirage

Member
  • Content Count

    9
  • Joined

  • Last visited

  • Medals

  • Medals

Community Reputation

10 Good

About snowmirage

  • Rank
    Private
  1. Thanks for pointing out the missing ; Fixed that though and still having the same issue. hmmm ---------- Post added at 12:38 AM ---------- Previous post was at 12:22 AM ---------- Has anyone seen this happen before? maybe in other situations? Might give me some idea whats causing it.
  2. I tried adding that space between while and {true} unfortently it had no effect. I thought the issue might be due to the sheer number of units I had in this mission. Probably over 100. I copied the nessicary triggers and added them to a new mission file. This mission has about 20 units if that. When the script runs it still hangs, though in this case after about 1min it clears up and units move as they should. In the mission I have been building it has sat there locked up and not responding for more than 7 min before I finally kill the task. I just cant imagine why its hanging like that.... hmmmm....
  3. Thanks for the help I think I am almost there. while{true} do { { _grp = _x; if ((side _grp) == east) then { (leader _grp) move (position tank1); } } forEach allGroups; sleep 5; }; I think that should work, the issue I have at now is its just hanging the game. I dont know if its not sleeping for some reason or what the deal is. But it seems to provide the desired effect. if I omit the while loop and use { _grp = _x; if ((side _grp) == east) then { (leader _grp) move (position tank1); } } forEach allGroups; it works but I think they will just move to the position the "tank" was at if the tank moves they wont keep after it. Any ideas?
  4. I think I know how to get this to work from some testing but it just seems like there must be an easier way to do it while{true} do { enemyunit1 domove (position playername); enemyunit2 domove (position playername); enemyunit3 domove (position playername); // repeated for each and every enemy unit sleep5; } I would have thought there might be a way to select all units in an area of a particular faction or side. Maybe I can some how name each of the groups. Then use "leader groupname" to get the current leader of a group and have him move the rest of the group should follow I think? If I just use the starting leaders of each group they could be dead by the time this triggers. Well back to searching. ---------- Post added at 06:22 PM ---------- Previous post was at 06:12 PM ---------- I created a group o f 5 soilders in the leaders init box added enemygroup = group this; // From what I have read this names that group then changed my trigger to while{true} do { (leader enemygroup) domove (position playername); sleep5; } it works.... the leader of the group moves where he should. but for some reason his group will not follow. and the search continues ---------- Post added at 06:33 PM ---------- Previous post was at 06:22 PM ---------- Think I might be on to something the units command seems to be what I am looking for I'm now trying this array = units enemygroup; {_x domove (position playername)} foreach array; Its getting there ---------- Post added at 06:42 PM ---------- Previous post was at 06:33 PM ---------- I think I can do this using the above and the allGroups function. But I would need a way to determine what side a unit is on, i'll see if I can find that. pseudo code while{true} do { { arrayofunitsingroup = units _x; { if (_y is Enemy) { _y domove (position playername) } } forEach arrayofunitsingroup; } forEach allGroups; } something like that back to the endless search ---------- Post added at 06:49 PM ---------- Previous post was at 06:42 PM ---------- while{true} do { { arrayofunitsingroup = units _x; { if (side _y == west) then { _y domove (position tank1);}; } forEach arrayofunitsingroup; } forEach allGroups; } think I am on the right track.... FYI...... forgetting the sleep command in an endless loop = BAD...... ;o) ---------- Post added at 06:57 PM ---------- Previous post was at 06:49 PM ---------- Well I think I was on the right track but something is not working as it should. Any ideas? What I am currently trying while{true} do { { arrayofunitsingroup = units _x; { if (side _y == west) then { _y domove (position tank1);}; } forEach arrayofunitsingroup; } forEach allGroups; sleep 5; } I think my issue is with the allGroups command I havent been able to find many examples of it yet
  5. Thanks for the response and I have been looking at the exact links you supplied already from searching around. I believe I understand how to get a particular enemy to chase the player. Though I need to go and test it still hopefully this weekend. I am looking for some way of selecting multiple groups of enemies, or all remaining enemies. The idea is your team just took out the enemy general and now they are on to you. Any enemy in the area are altered by radio of your position and given orders to take you out at all costs. I am building this mission on what I already have. And short of naming each individual group of enemy units (there are 30 or 40) I thought there might be some way to select them all.
  6. I have a mission in which one objective is to take out an enemy general. It all works fine. What I would like to do in order to give some more challenge and thrill to the end of the mission is to build a trigger or such so that when the general dies (aka Objective 3 is completed) ALL remaining enemy units (the generals team) will know the location of the player (its a MP mission so I suppose know the location of the player team leader) and will move to that location and attack. When Objective 3 is completed I set chaseplayer=true; then I have a trigger that states condition: chaseplayer activation: while{true} do { (allGroups) domove (getPos tank1); sleep5 } for the moment I just played a Bluefor tank (named tank1) near by to see if the enemy in the area would respond but they dont seem to. Anyone have any ideas on how to make this work? I would greatly appreciate it, searched around the forums to get this far but cant seem to get it. Thanks -Snow
  7. Been trying for a few hours, cant for the life of me find the "spot" where you get in the gunners seat even looking at your briefing any ideas?
  8. I am sure this is mentioned on this form some place but I'm not sure exactly what to call it so having a hard time finding it. My friends and I have made a few missions using the wizard editor and if we start with a group of say 5 in a squad when one of us dies they will "respawn" as one of the AI. I just created a new mission using the standalone editor which is more complex, and I am looking to have the same effect. I dont want any units to respawn, but I have 12 or so "playable" units on our team in various squads and when one of my friends or I die I want us to take over control of the next AI. If anyone could point me in the right direction on how to do this I would greatly appreciate it. ---------- Post added at 06:32 PM ---------- Previous post was at 06:22 PM ---------- I might have found it.....? http://forums.bistudio.com/showthread.php?t=96084&highlight=squad+member ---------- Post added at 06:36 PM ---------- Previous post was at 06:32 PM ---------- Looks like I need to find that file "description.ext" and add respawn = 5; my MPmission folder under my arma directory is empty however hmm.... continuing my search ---------- Post added at 06:39 PM ---------- Previous post was at 06:36 PM ---------- Under my documents I found my mission files, I do not see a description.ext file however only a mission.sqm file ---------- Post added at 06:43 PM ---------- Previous post was at 06:39 PM ---------- Looks like its not created by default, created the file I'll let you know if it works ---------- Post added at 06:46 PM ---------- Previous post was at 06:43 PM ---------- Looks like that did it, using respawn=5; on death I get a popup where I can choose which unit to switch to hopefully the post helps someone else figure it out as well.
×