bomber embarressment

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

bomber embarressment

Post 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:
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

setthread

Post 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.
Tom Trude,

Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Eeeeech I'm still doing somthing wrong doe. Any you guys got a prefab for me sob boo hoo.

Thanks

:)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Opps

Post 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
Tom Trude,

Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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.
Post Reply