omaha explosions

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
divaid
Corporal
Posts: 46
Joined: Fri Nov 21, 2003 10:27 am
Location: pesse (NL)
Contact:

omaha explosions

Post by divaid »

hey,

I have made a beach mape including bots but I don't know how to add MULTIPLE artillery explosions on the beach. I have read a tutorial from 'nemesis' but it just won't work. Can somebody tell in dept how to add several explosion + script. Thanks in advance
van Wassem entertainment© - entertainment on a degreement never imagined
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

You could add lots of script origins to the beach all with the same targetname like key: $targetname Value: mortar then make a thread call it lets say mortars_fire like this

main:
level waittill spawn
thread mortars_fire
...
...
end
mortars_fire:

// random integer starts at 0 but targetname array starts at 1

local.mortar = randomint( $mortar.size)+1

// default for global/model.scr is models/emitters/explosion_mine

exec global/model.scr $mortar[local.mortar].origin
wait 6
goto mortars_fire
end
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Send a nickel!

Post by tltrude »

Wish I had a nickel for everytime that question was asked! Here is a tutorial map/script that shows how to add random explosions to your map.

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

Image

You can just copy and patse, but it would be better to study the .map file and the script to find out how they work!

Good luck!

Ps: If you send the (imaginary) nickel to bdboder, I'm sure he could come up with something much more fun, and new to mohaa!
Tom Trude,

Image
Post Reply