09-16-2007, 09:42 AM | #1 |
Nutcracker
|
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? |
|
09-16-2007, 11:34 AM | #2 |
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 |
|
09-16-2007, 01:15 PM | #3 |
Nutcracker
|
Thanks, works perfectly
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|