|
02-02-2009, 06:14 PM | #1 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Flag Specific Trigger
Hi, I've been helping a friend with a map for a couple of days now. We are trying to go about the flag security in a new and somewhat unique way. However I need certain outputs to take place on whether the flag is in its respawn position or not. So I was thinking making a trigger that is activated by the set team flag. I have messed with the lua a bit but dont have much knowledge on it. I got it to a point where the flag can trigger it however a player had to be present in the trigger also. I would like it to be able to trigger with just the flag in it. If anyone could help me figure this out I would appreciate it. Thanks.
|
|
02-02-2009, 06:22 PM | #2 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Not possible at the moment, but it is high on the lua-priority list.
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
02-02-2009, 07:02 PM | #3 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Thanks, how about a script that would constantly check the flag origin and compare it to the location where its suppose to respawn.
|
|
02-02-2009, 10:54 PM | #4 |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Well, you can definitely check to see if it's off its origin. In base_ctf, the flag info_ff_script definitions have a status property that starts at 0 and changes to 1/2 after it gets touched initially. Detecting if it's within a certain trigger, though, is impossible.
You may be able to hack a crazy workaround using GetOrigin(), but I'd just wait until we get a real implementation of this.
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
02-03-2009, 03:05 AM | #5 |
Join Date: Feb 2009
Gametype: Capture the Flag Posts Rated Helpful 0 Times
|
Would you have any kind of time frame for this feature. Also could you explain to me how the GetOrigin() works just in case I choose to be crazy as you put it.
Last edited by Entigren; 02-03-2009 at 03:23 AM. |
|
02-03-2009, 05:09 AM | #6 | |
Stuff Do-er
Lua Team
Wiki Team Fortress Forever Staff |
Hopefully soon, though nothing definite. It's been on our to-do list forever.
Quote:
Code:
local flag = GetInfoScriptByName( "flag_name" ) local pos = flag:GetOrigin() Code:
pos.x pos.y pos.z
__________________
#FF.Pickup ¤ Fortress-Forever pickups My Non-official Maps Released FF_DM_Squeek - FF_2Mesa3_Classic - FF_Siege_Classic Beta FF_Myth - FF_Redlight_Greenlight Sick of the people on the internet, always moanin'. They just moan. - Karl Pilkington |
|
|
Tags |
flag, lua, trigger |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|