12-15-2007, 12:11 AM | #1 |
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? |
|
12-15-2007, 02:17 AM | #2 |
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.
|
|
12-20-2007, 03:59 AM | #3 |
D&A Member
Wiki Team Fortress Forever Staff 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 }) |
|
12-20-2007, 04:55 AM | #4 |
Nutcracker
|
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. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|