Minefields (more of one minefield)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Minefields (more of one minefield)

Post by mcunha98 »

Hi people :wink:

I read many tutorials about make a minefield. Ok the process is very simple, using a trigger -> multiple and putting the targetname minefield with the call of minefield.scr i make ONE minefield.

But in my map i need use TWO minefields, if i make a new trigger ->multiple and put in my make, none trigger work !!!

How i resolve this problem (is need use something like #SET for each trigger) ?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

if you name all your minefields the same they should work, i think. i haven't dealt with minefields in a while.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Yeah, just give them both a targetname of minefield.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Rookie One.pl {sfx} wrote:Yeah, just give them both a targetname of minefield.
Sorry but i dont understand your reply.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

give each minefield trigger a key/value

targetname/minefield

like you did with the first one ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

lizardkid wrote:give each minefield trigger a key/value

targetname/minefield

like you did with the first one ;)
Try this and you see the minefield"S" dont work !
If i delete one and rest a minefield, ok, work
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

you have to put

exec global/minfield.scr::minefield_setup

at the top of your scirpt after any minefield triggers you are spawing if you are spawning any. All minefields have the same targetname--> minefield

Thats it nothing more you need to do
Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

bdbodger wrote:you have to put

exec global/minfield.scr::minefield_setup
OOOOOppppsssss !!!!!!!!!!!!!!!!!!!1

In none site i see the directive minefield_setup !!!
I try use this and return in this topic the result
Thanks
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Well...

I try using the parameter "setup" of minefield, and make a simple map with two rects, in each of this rect (see image) i put a trigger -> multiple with targetname = minefield, but it dont make nothing !

Some another idea ???

Image

Code: Select all

main:

	level waittill prespawn
	exec global/DMprecache.scr
	level.script = maps/dm/___mytest.scr

	exec global/ambient.scr mohdm3
        exec global/exploder.scr
        //exec global/minefield.scr
        exec global/minfield.scr::minefield_setup 
	exec global/door_locked.scr::lock

	setcvar "g_dm_alliedtext1" "Mapa de teste" 
	setcvar "g_dm_alliedtext2" ""
	setcvar "g_dm_alliedtext3" ""
	setcvar "g_dm_axistext1" "Mapa de teste"
	setcvar "g_dm_axistext2" ""
	setcvar "g_dm_axistext3" ""
	setcvar "g_scoreboardpic" "none"

        //$world farplane_color "0.678431 0.678431 0.678431" 
        //level.fogplane = 4000 
        //$world farplane level.fogplane
	//level waittill spawn
end
[/code]
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

exec global/minfield.scr::minefield_setup

should be

exec global/minefield.scr::minefield_setup
Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

What i tell ???? :oops:
Is very very very ridiculous, but is true :shock:
I test and work fine with this "e" in script...

Image


Thanks
Post Reply