Fortress Forever

Go Back   Fortress Forever > Editing > Mapping > Lua

Reply
 
Thread Tools Display Modes
Old 03-02-2008, 02:11 PM   #1
span
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Return flag instantly

Hey, i've tried to create a lua script that will remove and return the flag from the carrier when touching a specific trigger_ff_script, but i've messed up to many times, so im asking this question here instead for some support.

Another Explanation:
A pitfall you can accidently fall into contains trigger_hurt at the bottom. After falling into this hole i want the flag to be returned at once without delay time. So you will fall through a brush (trigger_ff_script) before you touch trigger_hurt, this brush will remove the flag from you and return the flag to its original position.

Should be fairly simple? but im still a newb lua scripter.
span is offline   Reply With Quote


Old 03-02-2008, 03:06 PM   #2
mervaka
A Very Sound Guy!
Fortress Forever Staff
 
mervaka's Avatar
 
Join Date: May 2005
Location: UK
Posts Rated Helpful 15 Times
it is actually really simple :)

Code:
function entity:ontrigger ( trigger_entity )
   flag:Return()
end
bear in mind you ned to add the extra gubbins to reset the HUD etc, so copy relevant stuff from basecap:ontrigger()
mervaka is offline   Reply With Quote


Old 03-08-2008, 12:47 PM   #3
span
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Sorry for late reply and thank you, seems to work just fine
span is offline   Reply With Quote


Reply


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

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 02:10 AM.


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