OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MACRO on 18 Apr 2003, 19:48:04

Title: Rotation about the X-Axis? Please help if you can
Post by: MACRO on 18 Apr 2003, 19:48:04
Hi

I am trying to make an arty script. I know that there are several really good ones out there but I am trying to make this mainly for my own learning.

What I am trying to do is simulate incomming rocket fire using camCreate to create a shed load of hellfires at high altitude above a target.

This is where I have the problem as they all just fly off into the distance.

Is there any command that I can put into the actual code of an object so that I can make a special type of rocket as an addon that when spawned will be automatically pointing at the ground.

I am basically trying to make it look like MLRS fire.

Any help is greatly appreciated.

MACRO
Title: Re:Rotation about the X-Axis? Please help if you can
Post by: macguba on 18 Apr 2003, 21:08:36
setVelocity

setDir

might help.   I think there might be an MLRS script somewhere: download, learn and improve.   In any case, read the Command ref from beginning to end, like a book.    You won't regret it.
Title: Re:Rotation about the X-Axis? Please help if you can
Post by: Rubble_Maker on 22 Apr 2003, 07:30:49
best way is to make your own addon which defines a custom ammo for the rockets. Set tustTime=0 to switch on LGB simulation (thx 2 Jostapo for pointing that out), then spawn them high above ground and use SetVelocity to aim them properly.

With normal rockets I don't think SetVelocity will do anything but change the map heading; at least when I tried it did not change pitch/roll.