OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ozma on 01 Feb 2003, 03:25:00

Title: couple of questions, please help...
Post by: ozma on 01 Feb 2003, 03:25:00
first of all, can anyone please tell me how to set the starting height of a unit?

second, lol ive been playing flashpoint for a year, but i still cant figure out how the "laser designator" thing works, and how it can help you...please help!
Title: Re:couple of questions, please help...
Post by: Ranger on 01 Feb 2003, 05:51:06
In the initialization field of the unit, put the following code:

Code: [Select]
this setPos [(this getPos) select 0, (this getPos) select 1, x]
Replace x with the height that you desire.

The laser designator is used to guide laser-guided bombs to a desired point of impact--generally enemy units.  The laser designating unit must turn on the laser by pressing the fire button (usually, mouse button 1, a.k.a. the left mouse button) once while aiming at the desired target.  Next, a unit with laser-guided bombs (with official units, only the A-10 (GBU) has laser-guided bombs) must target the laser as you would any other enemy vehicle.  That is, use the Tab key to cycle through your targets until the laser is targeted, or else right click on the laser target on the radar.  Finally, fly at an appropriate altitude and speed toward the laser, and drop one or more bombs at the right time.  The bomb will travel to the laser, as long as it had enough altitude to reach the target.

Supposedly, Hellfires can also be used to target a laser, but I've never tried it.
Title: Re:couple of questions, please help...
Post by: ozma on 01 Feb 2003, 18:45:01
it says "unknown operator getPos" then it says "invalid number in expression"....
Title: Re:couple of questions, please help...
Post by: tOzzY on 01 Feb 2003, 23:28:24
to change height, try in the init field:
     this FlyInHeight 100

Change 100 with any number you like (well, not above 250 or so :D)

.tOzZY
Title: Re:couple of questions, please help...
Post by: Black_Feather on 02 Feb 2003, 00:11:19
ranger just got it the wrong way round, he meant to type

this setPos [(getPos this) select 0, (getPos this) select 1, x]