OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: StonedSoldier on 22 Jan 2004, 01:01:56
-
im sort of creating my own airstrike with choppers and i was wondering if its possible to make choppers shoot at game logics using the DoFire command,
or is there an easier way to make a chopper shoot at a certain piece of the terrain.
-
Nope.
There is an invisible target addon somewhere, that's what you need.
-
If its an airstrike, it implies theres something to strike at, yes? Why not have the choppers target the thing you want to be struck?
-
What you coudl do is make small objects such as a radio (If you have the editor upgrade 1.2), and place them in the locations you want to be engaged. Then in the radio's init field put in:
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) -2]
This will lower the radio under the ground and make in invisible,. Now just throw in a name to each Radio like "R1", and place in a script or trigger using the DoTarget commadn FIRST, THEN then DoFire command afterwards. Good luck.
-=Kilo=-