bomber.scr

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

bomber.scr

Post by SilentAngel »

I'm trying to make a map where there are more then 1 air strike, so
I've made 6 different path for a plane that drops bombs, now I have to
specify when they have to work, and of course one per time.
So I think the best way is to make them run one after the other and devided by random time..
the problem is that I dunno how to run make the game undersand what path it has to run, I will try this one but I'm sure it wont work, it sounds too easy:
---this idea is taken from the bomber.scr last informative section---

Code: Select all

while (1) { 
 wait randomint(300)
thread global/bomber.scr::bomb 1
 wait randomint(300)
thread global/bomber.scr::bomb 2
 wait randomint(300)
thread global/bomber.scr::bomb 3
 wait randomint(300)
thread global/bomber.scr::bomb 4
 wait randomint(300)
thread global/bomber.scr::bomb 5
 wait randomint(300)
thread global/bomber.scr::bomb 6
 wait randomint(300)
}
another problem is that the plane path have to run just one bomb path, and that mean that plane path and bomb path have to be linked together exemple: planepath1 with bombpath1; planepath2 with bombpath2; ecc!
however if someone have a good idea, advices are welcome! :wink:
sorry for the bad english! lol
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Uhm, the .set property for your splines? (Read header, last line) Look at those exec commands, those 6 numbers, did you just put them there or do they represent the .set number of each path?? Each spline of 1 path you want, needs to have a same set number. Execute the bomber script with that number for the path which obviously has the corresponding set number, you want to plane to fly on.

You could also just use waitthread, then the script'll continue once the flying and bombing etc is done.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Post Reply