OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Rapter on 19 Aug 2004, 16:05:11

Title: How to make a counter-attack
Post by: Rapter on 19 Aug 2004, 16:05:11
I want to make a counter attack to a base that has just been captured, now i know how to do this with units placed in the editor but this will not work for my mission as the reinforcments come by sea (the russian plane, bmps and a mi17). I know i should use the createvehicle command but thats about it ;D. So if anyone can help i will be grateful.

Oh if this has already been answered before, sorry but i did do a search first and got nothing.
Title: Re:How to make a counter-attack
Post by: macguba on 19 Aug 2004, 16:11:08
Why won't it work with units placed in the Editor?    BMPs float so you can have everybody mincing around offshore and then bring them in with switch triggers at the appropriate moment.
Title: Re:How to make a counter-attack
Post by: norbe on 19 Aug 2004, 16:17:54
hey,

The simplest way that i can think to solve this problem is to use a switch trigger which is activated when the base is captured. If your unsure how to do this im sure there is a tutorial in the editors depot on this.

As for the createvehicle command,  i find it a bit tricky to use effectivly so i would say avoid it if u can, although there might be a tutorial on that as well.
Title: Re:How to make a counter-attack
Post by: Rapter on 19 Aug 2004, 16:23:13
Well it could I just did'nt want it to lag as much with units that are idle and not seen by the player for the first part (the most) of the mission.

Yeah I know about the switch trigger, quite a handy thing, it would probably be the best to set off the attack.
Title: Re:How to make a counter-attack
Post by: macguba on 19 Aug 2004, 18:35:24
Build it using switch triggers.    If you get lag, read this tutorial. (http://www.ofpec.com/editors/resource_view.php?id=512)   If you still have lag you can think about using createUnit but remember that it's not a magic wand.    
Title: Re:How to make a counter-attack
Post by: Rapter on 19 Aug 2004, 19:27:58
Yeah I suppose it will be the best method. Thanks