OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: blackbuddy on 04 Nov 2005, 16:41:11

Title: bomber script
Post by: blackbuddy on 04 Nov 2005, 16:41:11
Hey lads

I created a script that creates laser guided bombs under a plane, with the same speed and direction as the plane. You could use this script for cutscenes or something. I know there is another script like this; but in that one creates the bombs under the plane too, but don't have the same speed and the same direction as the plane.
This is my first uploaded script ever, so if I do something wrong or the script is worse just tell me.

Thanks, Citizen Potato
Title: Re:bomber script
Post by: klavan on 04 Nov 2005, 18:49:29
Nice, but where's the script??
Klavan
Title: Re:bomber script
Post by: blackbuddy on 05 Nov 2005, 10:25:10
Here
Title: Re:bomber script
Post by: klavan on 05 Nov 2005, 15:14:58
Nice script, just a suggestion: add a  _  before the bomb (_bomb instead of bomb) variables in the script, this change the variables from global to local thus avoing possible conflict with other variables and saving OFP memory resources.

The sample mission it's ok, but you've to change the name of the script fired by the trigger from [plane,10] exec "a10bomber.sqs" to [plane,10] exec "bomber.sqs" or you will receive an error message once the plane enters the trigger's area and the script doesn't run.

Klavan
Title: Re:bomber script
Post by: blackbuddy on 06 Nov 2005, 14:58:11
I did as U said.
The script is now pending.

Very big thanks to Klavan for spending his time for me.  :)

Topic solved.