Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 09-16-2007, 09:42 AM   #1
A1win
Nutcracker
 
A1win's Avatar
 
Join Date: Sep 2007
Location: Kuopio, Finland
Posts Rated Helpful 0 Times
Send a message via MSN to A1win
OnStartTouch, OnEndTouch and OnEndTouchAll

These are outputs of a trigger_multiple and they also seem to be implemented for trigger_ff_script in the FGD file.

But is there a way of accessing these through the lua script? The capture points are made with the "ontrigger" function in the script, but I need a way to detect when a player enters an area and when the player leaves the area. When I try to make onstarttouch function etc. it still gives me "unhandled event" in console.

Or can't we just get a (documented) list of all the forwards and functions available?
A1win is offline   Reply With Quote


Old 09-16-2007, 11:34 AM   #2
Sidd
Lua Team
 
Join Date: Mar 2007
Posts Rated Helpful 1 Times
The functions you want are called:
ontouch( touch_entity )
onendtouch( touch_entity )
oninactive()

Have a look at example_concmap.lua for a working example
Sidd is offline   Reply With Quote


Old 09-16-2007, 01:15 PM   #3
A1win
Nutcracker
 
A1win's Avatar
 
Join Date: Sep 2007
Location: Kuopio, Finland
Posts Rated Helpful 0 Times
Send a message via MSN to A1win
Thanks, works perfectly
A1win 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 01:49 PM.


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