Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 12-15-2007, 12:11 AM   #1
some-guy
 
Join Date: Dec 2007
Posts Rated Helpful 0 Times
? cany anyone tell me how

how do you make a trigger_hurt ony hurt 1 team

and is there a way to make it where 1 team makes it to a point on the map and they die and get points for making it to that spot on the map for there team and 1 other team?

and one other one like on hunted when you kill the hunted that team gets point how do get that to work on my map and i dont want to use the hunted one?
some-guy is offline   Reply With Quote


Old 12-15-2007, 02:17 AM   #2
nodnarb
 
Join Date: Mar 2007
Posts Rated Helpful 5 Times
I moved this to the LUA section because I know it has stuff to do with Lua, but I'm not sure what.
nodnarb is offline   Reply With Quote


Old 12-20-2007, 03:59 AM   #3
Crazycarl
D&A Member
Wiki Team
Fortress Forever Staff
 
Crazycarl's Avatar
 
Join Date: Apr 2007
Posts Rated Helpful 31 Times
Here's the trigger_hurt thing. This is ripped directly from Aardvark's lua. just name your trigger_hurt blue_slayer to kill blue and red_slayer to kill red.
Code:
KILL_KILL_KILL = trigger_ff_script:new({ team = Team.kUnassigned })

function KILL_KILL_KILL:allowed( activator )
	local player = CastToPlayer( activator )
	if player then
		if player:GetTeamId() == self.team then
			return EVENT_ALLOWED
		end
	end
	return EVENT_DISALLOWED
end

blue_slayer = KILL_KILL_KILL:new({ team = Team.kBlue })
red_slayer = KILL_KILL_KILL:new({ team = Team.kRed })
Crazycarl is offline   Reply With Quote


Old 12-20-2007, 04:55 AM   #4
A1win
Nutcracker
 
A1win's Avatar
 
Join Date: Sep 2007
Location: Kuopio, Finland
Posts Rated Helpful 0 Times
Send a message via MSN to A1win
He already got the answer in a newer thread... http://www.fortress-forever.com/foru...ad.php?t=13422
People should really learn to give proper titles for their threads.
A1win is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.