-
Content Count
359 -
Joined
-
Last visited
-
Medals
Posts posted by Lucky44
-
-
You got me thinking about this, so I started working on a similar mission. But I'm stuck on how to spawn the wreck. Can anyone suggest a better way to do this than what I have below?
; Generate random positions in 500m diameter from marker1
x = round(random 1000) -500;
y = round(random 1000) -500;
SpawnPos = setPos [ (getPos Marker1 select 0) + x, (getPos Marker1 select 1) +y, (getPos Marker1 select 2) +0.2];
; Create Vehicle at the randomly generated position
wreck = "UH1Wreck" createVehicle (getMarkerPos "Spawnpos");
-
I've gathered a few of the better YouTube tutorials together here with a brief note for each. Hope this is helpful.
YouTube Arma2 Tutorial Videos
Intro to Editor 1: Basic Map controls (titles not VO) - By RichieSpeedIsBack
Intro to editor 2: Groups and Waypoints (titles not VO) - by Richiespeedisback
Artillery and UAV (titles not VO) - by bigbangAT
Helo insertion, Part 1. (w/VOs) by eclipse245
Helo extraction (after completing objective) (titles not VO) - by Pollitochuloo
Triggers intro part 1. (w/VOs) by eclipse245
Creating (placing) Units in editor (w/VOs) by eclipse245
Setting up Respawn (w/VOs) by eclipse245
Triggers, Part 1 (w/VOs) by BabyAlien83
Triggers, Part 2 (w/VOs) by BabyAlien83
Triggers w/a bit of scripting (w/VOs) by BabyAlien83
Scripting a napalm bomb (W/VOs) by BabyAlien83
Triggers and reinforcements (w/VOs) by BabyAlien83
Designing missions (w/VOs) by BabyAlien83
Arma2 File and Folder organization (w/VO) by Lucky44
Firing Triggers via specific units (w/VO) by Lucky44
-
There's a good YouTube tutorial on this by BigBangAT. Check it out.
-
---------- Post added at 09:15 PM ---------- Previous post was at 09:14 PM ----------
[/color]Problem solved. Apologies!
gogogo should be placed On Action! Works a charm now!
I realized after carefully reading through your post, only to come to the end and see you no longer need help, that I have done similar things.
I suggest we both make a habit of putting the edit at the TOP of the post so people don't waste time unnecessarily.
-
OK, thanks SHK. That's helpful.
Wow, thanks TCP! That was a lot of effort, and I appreciate it; I also learned some things that will be useful. I don't, however, want the vehicles to leave if they're hit, I just want the Boss to skip them if they can't transport him away quickly. Minor detail, and I get your point, so thanks.
-
Why not just assignasdriver + ordergetin, would be so much easier than waypoints.Well, I don't want him to be the driver, but I guess I could assignascrew or some such. Would that go in a trigger? I'm not familiar with its use: does it make the unit move to the vehicle, or does he teleport to it?
-
This seems like a bug, but maybe I'm missing something.
I have a situation where 1 unit (call him Boss) is going to flee to a helo and take off and exit the area. But if the helo is damaged, he will skip the helo and go to a car, and if the car is damaged, he'll skip it and go to a boat to exit the area.
So I have Boss's waypoints set up to basically move near the helo, then GetIn the helo, then move near the car, then GetIn the car, then move near the boat, then GetIn the boat, then leave.
I've messed with using empty vehicles and crewed vehicles (crewed is what I want so they can each have their own exit waypoints after Boss gets in).
And it works fine until I add the Switch triggers to the GetIn waypoints to detect the damage and make Boss skip the GetIn waypoint if the vehicle is damaged. (For testing purposes, I've tried making the triggers detect other things, btw.) Once I add the trigger, the Boss just runs near the vehicle and stands there, maybe stuttering a little. It's as if he wants to get in but he can't. And it's not a matter of his path to entering the vehicle being physically blocked; nothing has changed except the addition of the Switch trigger.
I can throw the trigger and make him skip the helo and go to the car, but then he won't get in the car either. If I then make him skip the car and go to the boat (which has no Switch trigger on its GetIn waypoint since it's last in the chain), he will get in.
So what's going on with Switch triggers messing with my GetIn waypoints?
Thanks!
-
Many Thanks I have been looking for a way to land Helo's on the LHD. Hopefully Mandoble will convert his other amazing scripts to ARMA2.Does this script (the Mandoble heli precise landing one) work with Arma2 at the moment? If so, can someone explain how to implement it in an Arma2 mission? (I mean, I know that the files need to be in the mission's folder and all, but when I set it up as expected, it didn't work.)
Simple scripting? Something's going wrong
in ARMA 2 & OA : MISSIONS - Editing & Scripting
Posted · Edited by Lucky44
I'm trying to do a randomizing thing. I want to have five or six groups of enemies (AI). At a certain time, a random number will pick one group and trigger them to move to their next waypoint, assaulting the players' position.
EDIT:
I realize now that the best way to do this is with arrays, and with dengibtsschon's help (see below) I'm working on that. But here's one way to do it in a single script. A trigger calls this, but you could set it up in an init.sqf file or a trigger with a radio call to start it, etc. The script is handy for generating random numbers in a group, keeping track of which have been used, and generating more from the ones that remain.
MUCH EDITED CODE below. Now all in one script:
Thanks in advance for any help!