OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: titan on 03 Apr 2003, 14:01:04

Title: create units with waypoints
Post by: titan on 03 Apr 2003, 14:01:04
how is it pos to create a unit in the middle of a game and with its waypoints?!

so like you cld call in a airstrike, instead of having a a-10 flying around all day, you click on the radio and it creates a a-10 then it follows waypoints to the strike place??
Title: Re:create units with waypoints
Post by: dmakatra on 03 Apr 2003, 17:00:26
Not sure you can do that. YouÂ'll probably need to write some commands for that. There are several commands for moving, I use commandmove though.
Title: Re:create units with waypoints
Post by: MadFred on 04 Apr 2003, 16:59:01
Well you dont necessarilly have to create units like that,you can also have them waiting somewhere (out of sight) untill you need them

For example:

Airstrike:
Place a pilot near the runway
Place en EMPTY A10 on the runway

Give the pilots a MOVE waypoint close to the A10
Then followed by a GETIN waypoint on the A10 and the waypoints for him to go to for the airstrike or airsupport, and perhaps some MOVE WP's in between or afterwards and landing at the end, whatever suits you!

Now place a trigger, radius not important can be 0, type switch, activated by radio alpha (or whatever channel you like)
Synchronize this trigger (F5) with the first MOVE waypoint (do this by holding down left click and drawing a line between trigger and WP)

now the pilot will stop at the move waypoint and wait for radio call 0-0-1 (alpha)

So when you call him he will continue with his WP's thus getting in,taking off and flying his airsupport mission.

You can do the same for other units or groups aswell, and also just interrupt any units/groups path between waypoints by using a trigger on one of them, these triggers can be activated by radio but also by other events like enemy units reaching a certain point, or friendlies taking casualties etc.

For example, tanks needed when enemy tanks enter a town you hold:

put the tanks some where on the map, which is their starting point, out of sight of player,

Give them waypoints for all their actions and put a trigger into the town, which is type switch, activated by east.
radius here has to cover the area the enemy drives into.
now just synch this trigger with the tanks first waypoint (which is real close to their starting point). and they will start to roll when the enemy arrives.

So you see you can have units and groups "appear" like that, they dont have to fly/drive or run around endlessly untill they are needed!

Hope this helps

MadFred

Title: Re:create units with waypoints
Post by: goki on 04 Apr 2003, 18:30:47
Well this is just great !

here there are people who are very experienced about waypoints for air vehicles !


Listen I got a simple problem:(it sounds simple but it is not actually)

I want to have an empty helicopter stays on ground and some soldiers around waiting for example 5 soldiers and I want after 60 seconds they getin helicopter and move to a waypoint.

I did achieved to make them get in after 60m seconds by writing assignascargo commands into captain's waypoint. but although I put a second waypoint as move, they are just rising and waiting in air,not going to 2 waypoint!

how can I solve this?

should I add any trigger?

please help me ?
Title: Re:create units with waypoints
Post by: macguba on 04 Apr 2003, 18:42:26
Does the helicopter pilot have a waypoint to go to?
Title: Re:create units with waypoints
Post by: MadFred on 04 Apr 2003, 18:47:01
do you want this chopper to be really empty so that the group flies it or do you want it t obe a chopper manned by regular pilots which takes the group somewhere?