OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: HiReZ on 21 Jun 2003, 12:05:38

Title: How to make a shell to explode in the air?
Post by: HiReZ on 21 Jun 2003, 12:05:38
I use CamCreate command to create eg. Shell125 or other on certain height. I want it to explode there, before hitting ground. How to solve this problem in v1.46 ?
Title: Re:How to make a shell to explode in the air?
Post by: LCD on 21 Jun 2003, 13:18:55
shels wil explode wen dey hit somin ;D

so create under shel nd make it hit it

LCD OUT
Title: Re:How to make a shell to explode in the air?
Post by: HiReZ on 21 Jun 2003, 15:09:02
Ok, thanks a lot. It fires just fine  :gunman:

I just made new, simple AA artillery script, inspired by Johan Gustaffson's script.

An object (eg. marker) is needed to use it.
Init field: this exec "AAartillery2.sqs"

File is attached

First section is for edition.
Meaning of constants:

_Shell  - ammo name you want to use
_Centre  - this is not for edition ;)
_area  - "radius" of  hot zone (in truth it is rectangular)
_minZ  - height of bottom side of hot zone (it is 3d zone :D )
_maxZ  - height of upper side of hot zone
_freq  - frequency of fireing (eg. 0.5)
_rounds  - total number of rounds to be fired

Discover beauty in simplicity! :D