How do I..

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

How do I..

Post by HeavenBound »

Make a team win the round in DM...

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

I'm new at this :)
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post by SilentAngel »

try this:

Code: Select all

teamwin( String axis_or_allies )
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

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

I'm new at this :)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

A typical use case for parm.other magic :)

Code: Select all

if (parm.other.dmteam == "allies")
  teamwin "allies"
Image
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post 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. :)
HeavenBound

I'm new at this :)
SilentAngel
Captain
Posts: 239
Joined: Wed Mar 12, 2008 8:27 pm

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

What SilentAngel said, or make the trigger notTriggerable (not the player). Probably self nottriggerable or $trigger nottrigerable, depending on the context.
Image
Post Reply