Page 1 of 1

bomber embarressment

Posted: Tue May 06, 2003 4:58 am
by small_sumo
How do I get my bombers "bomb" to run an exploder setup. You know with the smashes and chunks etc.
The first one has setthread boom, or somthing, and what do you write in the script to make the boom happen. Is the exploder to be the same set number as the plane?
At the moment it just goes boom at the end but doest run the rest.
?

Thanks wise ones.

Bye

:wink:

Posted: Tue May 06, 2003 8:12 am
by mohaa_rox
After making ur plane move, count the number of seconds taken before it bombs.

Then in ur script:

//bomber code
wait xxx
exec global/exploder.scr::explode 1
end

setthread

Posted: Tue May 06, 2003 1:56 pm
by tltrude
You can put setthread in one of the bomb path nodes.

example:

Key: setthread
Value: kablam

Then in your script you would put this:

Code: Select all

kablam:
	thread global/exploder.scr::explode 5
end
In this example, "5" is the #set of the exploder. The above example is in map m4l0 which came with the editor and should be in the docs folder. In that map the bomber #set is 2. Of course, you must have the exploder script preloaded at the top of your script "exec global/exploder.scr" as well.

Now that you have that streight, I'll stick a pin in it, ha ha! You can just use:

Key: setthread
Value: global/exploder.scr::explode 5

in the bomb node and skip the scripting. :)

Hope that helps.

Posted: Tue May 06, 2003 3:10 pm
by small_sumo
oooooh I'll try that, thanks man. Oh and special thanks for big detail and much hand holding hehe.

Bye.

Peace out.

Posted: Thu May 08, 2003 12:56 am
by small_sumo
Eeeeech I'm still doing somthing wrong doe. Any you guys got a prefab for me sob boo hoo.

Thanks

:)

Opps

Posted: Thu May 08, 2003 12:59 pm
by tltrude
I tried putting the exploder thread path directly in a bombnode, but it didn't work. So, you'll have to do it using the script. The $setthread for the script thread goes in the first bombnode of the bomb path (the one $targetnamed "bomber"). Don't worry, the exploder wont explode until the bomb gets to the end of its path.

Here is a test map for it:

http://pages.sbcglobal.net/tltrude/Temp/test_bomber.zip

Posted: Thu May 08, 2003 3:05 pm
by nuggets
couldn't you just use

create a place where the bomb will be getting dropped

while ($plane istouching $bomb_drop_place)
thread drop_the_bomb
end

Posted: Fri May 09, 2003 12:56 am
by small_sumo
Thanks Tom I might add it to me tuts section.

Hey nuggs go make a test map like Tom did :)

Can always use one more tut hehe.