Jump to content

kylania

Member
  • Content Count

    9181
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by kylania

  1. Download this test mission. It shows how to spawn groups via action menu leading to a script and a trigger without a script.
  2. Holy crap! SOOO COOL! :) Gief mission nao!
  3. kylania

    Co-op tutorial

    http://www.ofpec.com/tutorials/index.php?action=show&id=44
  4. I checked the Config.cpp from the addon. :) class AnimationSources { class Ani_Ramp { source = "user"; animPeriod = 2; initPhase = 0; }; }; class UserActions { class LAOpenRear { displayName = "Lower Ramp"; position = "pos pilot"; radius = 10; condition = "(this animationPhase ""Ani_Ramp"" < 0.5)&& (alive this)"; statement = "this animate[""Ani_Ramp"",1]"; onlyforplayer = 1; priority = 4.700000; showWindow = 1; }; class CloseRear { displayName = "Raise Ramp"; position = "pos pilot"; radius = 10; condition = "(this animationPhase ""Ani_Ramp"" > 0.5)&& (alive this)"; statement = "this animate[""Ani_Ramp"",0]"; onlyforplayer = 1; priority = 4.700000; showWindow = 1; }; };
  5. Your main problem is the "land on some water". The AI chopper is smart enough to know it can't land in water and therefore will try to land as close as it can to your water spot on dry land. The actual opening of the ramp is trivial. :) Just put a MOVE waypoint before your landing waypoint with CH1 animate["Ani_Ramp",1]; as the activation. Assuming your Chinook is called "CH1".
  6. {[color="Blue"]_x[/color] [color="DarkOrange"]setUnitPos[/color] "MIDDLE"} [color="Blue"]forEach[/color] [color="DarkOrange"]units[/color] [color="DarkOrange"]group[/color] [color="DarkGreen"][b]this[/b][/color]; forEach format: {command} forEach array; The _x is a special "built in" variable. It means "the current value" of the forEach array. The setUnitPos, units and group are all commands. setUnitPos "MIDDLE" is the command that will command the unit to remain kneeling. In this case _x will be the unit each time through the array. units is a command that creates an array of units from a group. The group in this case is a second command, group this, which uses the keyword this. The this keyword in this case refers to the leader who's init field you're putting this. So "group this" ends up meaning "the group of this unit". So units group this means "each of the units in the group that this unit is part of". So the way you'd "read" that in English would be: setUnitPos "MIDDLE" for each of the units in the group of this unit.
  7. To be honest, I didn't read the whole thread, just saw 15 lines of code that could be replaced by 1 and offered the method. :) You don't need to name the Function Module, just have it on your map anywhere. The "BIS_fnc_SpawnGroup" thing is a function that's enabled by having the Function Module on your map. I suppose you could include the 3 lines of code i posted in an SQF, or even just from a trigger. To fully use the function module you'll want to have this line in your init.sqf: waituntil {!isnil "bis_fnc_init"}; The spawn group function is very expandable too, like you can specify which units to spawn as well.
  8. Use Functions, make your life easy! :) Place the Function Module, then: GroupSquad1 = [getMarkerPos "Squad1", East, 12] call BIS_fnc_SpawnGroup; _leader = leader GroupSquad1; [_leader,"TaskB1"] execVM "ups.sqf";
  9. Basically the General dude won't complete the first MOVE waypoint till the switch trigger activates, in this case when the group of 4 bad guys losses one bad guy. Quite similar to a HOLD waypoint.
  10. Here's a demo mission for you which shows how to do what you want using just triggers/waypoints. Basically you'll synchronize a Switch Trigger with the MOVE waypoint in the building. The Switch will have the Condition for how many casualties you wanted first. Then double click the GET IN Waypoint onto the vehicle to tie it to the empty vehicle and he'll continue on. Basically the only problem you had was the GET IN wasn't placed correctly.
  11. moveInDriver command happens instantly. No animation, the AI doesn't even technically know it's in the vehicle for purposes of a subsequent GET OUT waypoint. Either change your trigger to check if he's in the vehicle rather than 5m away, or use something like assignAsDriver combined with orderGetIn instead of the moveInDriver. The other thing to try is moving the Get In waypoint ONTO the vehicle rather than next to it, to tie it to the vehicle. Here's a demo mission that shows that in use.
  12. kylania

    Vehicle drop from C130

    Instead of using "ParachuteMediumWest" use "ParachuteBigWest".
  13. Start the player somewhere else, than teleport them to the starting point at the beginning?
  14. I can understand people not searching, I think it's crazy, but I understand it. But not seeing a thread on the SAME PAGE with the SAME TITLE? C'mon, put some effort into it...
  15. I'm getting that same error, except it kills my game client within seconds of that effect starting.
  16. I tried this out. All the rabbits ran away from me at breakneck speed, even through barriers i put up to stop them. The script as written nearly killed my game client though.
  17. I run an iCore7 w/6GB with -winxp and -maxmem=2047 and it's unplayable. *shrug* HT on, off, doesn't matter. Nvidia tweaked, not tweaked, OC'd, not OC'd, old drivers, new drivers, SLI, single card, 8800, 260, 260s... nothing works.
  18. My iCore7 isn't overclocked and I've underclocked my factory OC GTX 260. I've hard set it at the proper amount of RAM, I've run tests and my hardware checks out. I give up.
  19. That's what I get every time I play within minutes, except there's hundreds of the v-buffer errors. I've checked my RAM, no problems detected, I've tried 5 different video cards and keep getting the same. ArmA 2 is simply unplayable for me.
  20. You have "goTo" and "exit", two things that do nothing in SQF, yet you end every line with ; as SQF needs (in SQS it's a comment marker, so if you are in SQS your entire 'if/then' statement ends at onMapSingleClick '' You're also using ~ which is SQS, you'd want to use sleep #; in SQF. Write it in one or the other format, see if it works. :)
  21. When you save a mission in the editor it creates a folder under: My Documents\ArmA 2 Other Profiles\PlayerName\missions Any files related to the mission, such as init.sqf and briefing.sqf, would go in the folder with the name you saved it as. For your FIRST mission, skip things like briefings and everything else, make it obvious enough that you don't need it. Learn in small steps and work up to the more complex things. You'll never get things perfect the first time, so don't kill yourself when you don't. :) This thread already lists all the steps you need to make a briefing, if they don't make sense at all now, do more simple missions learning as you go till they do make sense.
  22. You have an odd mix of SQF and SQS there it seems...
  23. No problem, there are plenty of other ways of doing this from briefing tasks lighting up hidden markers to actually creating and destroying the markers are as go along. From a new editors viewpoint I thought having hidden markers where you have objectives so you can see at a glance where the action will be and simply moving/renaming the one visible marker would be easier than creating and destroying and all that jazz. :)
×