Post your scripting questions / solutions here
Moderator: Moderators
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Thu May 26, 2005 2:20 am
Hi people
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 » Thu May 26, 2005 3:05 am
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 » Thu May 26, 2005 7:41 am
Yeah, just give them both a targetname of minefield.
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Thu May 26, 2005 9:25 pm
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 » Thu May 26, 2005 10:01 pm
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
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Mon May 30, 2005 8:51 pm
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
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Tue May 31, 2005 11:19 am
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
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Tue May 31, 2005 8:18 pm
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
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Sun Jun 12, 2005 2:42 am
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 ???
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]
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Sun Jun 12, 2005 4:06 am
exec global/minfield.scr::minefield_setup
should be
exec global/mine field.scr::minefield_setup
mcunha98
Lieutenant Colonel
Posts: 384 Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:
Post
by mcunha98 » Sun Jun 12, 2005 8:51 pm
What i tell ????
Is very very very ridiculous, but is true
I test and work fine with this "e" in script...
Thanks