Home   Help Search Login Register  

Author Topic: bomber script  (Read 2206 times)

0 Members and 1 Guest are viewing this topic.

blackbuddy

  • Guest
bomber script
« 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
« Last Edit: 05 Dec 2005, 12:30:39 by citizen potato »

klavan

  • Guest
Re:bomber script
« Reply #1 on: 04 Nov 2005, 18:49:29 »
Nice, but where's the script??
Klavan

blackbuddy

  • Guest
Re:bomber script
« Reply #2 on: 05 Nov 2005, 10:25:10 »
Here

klavan

  • Guest
Re:bomber script
« Reply #3 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

blackbuddy

  • Guest
Re:bomber script
« Reply #4 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.