Page 1 of 1

How do I..

Posted: Wed Nov 17, 2010 1:16 am
by HeavenBound
Make a team win the round in DM...

I looked in V2, but you can't use obj stuff in DM maps..

Posted: Wed Nov 17, 2010 10:52 am
by SilentAngel
try this:

Code: Select all

teamwin( String axis_or_allies )

Posted: Wed Nov 17, 2010 10:03 pm
by HeavenBound
HeavenBound wrote: I looked in V2, but you can't use obj stuff in DM maps..
lol. I figured it out though. My next problem is making it so only 1 team can activate a trigger...

Posted: Wed Nov 17, 2010 10:20 pm
by jv_map
A typical use case for parm.other magic :)

Code: Select all

if (parm.other.dmteam == "allies")
  teamwin "allies"

Posted: Thu Nov 18, 2010 1:22 am
by HeavenBound
How would I make a team immune to a trigger?

I tried

Code: Select all

if(parm.other.dmteam == allies)
{
parm.other notTriggerable
}
but I get the error

Code: Select all

parm.other notTriggerable (maps/dm/mohdm1.scr, 105)
parm.other ^

^~^~^ Script Error: Failed execution of command 'nottriggerable' for class 'Player' Targetname 'player'


**Edit: Got it. Thanks anyway. :)

Posted: Tue Dec 07, 2010 2:04 am
by SilentAngel
what about this at the very begin of you trigger thread:

Code: Select all

	if(parm.other.dmteam == "allies")
		end
	//then the rest of your thread script to be exec in case it's not allies

Posted: Tue Dec 21, 2010 9:17 pm
by jv_map
What SilentAngel said, or make the trigger notTriggerable (not the player). Probably self nottriggerable or $trigger nottrigerable, depending on the context.