Editors Depot - Mission Editing and Scripting > Arma2 - Editing/Scripting General

Waypoing on activation/condition via script AND Heli commands

(1/2) > >>

Mad Pup:
Hi there, glad to see the site is back up. You guys had me worried.

I was wondering if theres a script command to set the On Activation of a waypoint as well as the Condition of a waypoint, via scripts.

Also, I've download official command references from the eidtors depot, but for some stupid reason I can't open the html files. So I was wondering if somebody out there could post a sample script to get the following:

An AI helicopter to take off, move to a certain place on the map (a trigger) land, and wait with the engines on, then take off again. All via script. No waypoints in the editor because there are multiple areas where the heli could go, and the location is chosen at random.  :D

Thanks in advance!

~Mad Pup  :good:

h-:

--- Quote ---I've download official command references from the eidtors depot
--- End quote ---
Unfortuntely that is not going to be much of help as it only contains the original OFP-OFP:Resistance commands, there's hundreds more in Arma2 so your best bet is to use the COMREF here.


--- Quote ---I was wondering if theres a script command to set the On Activation of a waypoint as well as the Condition of a waypoint, via scripts.
--- End quote ---
I thought there was but couldn't find just now so maybe there aren't (which is weird because for everything else there is).
Anyway, using waypoints to control events in a missions is very bad design because waypoints may never get activated for some reason or another (this info is directly from the game devs btw so not something I cooked up :P ).

Other problem is that in A2 the AI choppers are extremely picky where they want to land so they may never land even near where you want them to, and they prefer to land on the 'helipads'.


Anyway, this can be done without any waypoint scripting involved, how it's done exactly depends on whether the destination trigger is created dynamically or pre-set triggers are selected randomly. And does the trigger do something specific or is it just a position.

Mad Pup:

--- Quote ---does the trigger do something specific or is it just a position.
--- End quote ---
It's simply a position. It doesn't do anything.


--- Quote ---depends on whether the destination trigger is created dynamically or pre-set triggers are selected randomly.
--- End quote ---
and I have no clue what this means haha. I'm just getting back into editing, and it's been years since I have with OFP. I've forgotten all my terms I used to know.


--- Quote ---they prefer to land on the 'helipads'.
--- End quote ---
Could I throw down an invisible helipad to help? Or would that do nothing...

Thank h- for the quick response.

~Mad Pup

h-:
With dynamically created triggers I meant if you create them with a script while the mission is running, with pre-setting if you put them on the map while making the mission.
Probably not the clearest way of putting it, ah well..  :whistle:

Anyway, since they're for position only I already have a script that might help you in creating yours, I'm just in the middle of getting my PC up and running again after changing the main hard drive on it so may take some time to provide it to you though..

Invisible H might help, especially if the ground is not very flat but if they don't like the terrain they don't land so it's just a matter of trial and error until the sweet spot is found.
Not that they're atrocious at it, just that it's something you need to be aware of when making missions.

Mad Pup:

--- Quote ---so may take some time to provide it to you though..
--- End quote ---
Ah well, no rush. I'm a full time college student, so I don't expect this mission to just happen overnight haha.


--- Quote ---if you create them with a script while the mission is running,
--- End quote ---
:blink: You can create a trigger with a script? I'm very amateur, I'm sorry haha. Just glad to finally have a PC capable of running A2.

Thanks h-

~Mad Pup

Navigation

[0] Message Index

[#] Next page

Go to full version