Frictional Games Forum (read-only)

Full Version: Area Script Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I set an Area from inactive to active? Things like SetAreaActive("example_area") didn't work. It would be very nice if you could post me a script part like on the tutorials threads on Frictional Games Wiki.

Thanks for replies Big Grin
You cannot (at least as far as I know).

If you want to remove for example a collide callback with the area, you should use the
RemoveEntityCollideCallback
function (you can find details about it it here: http://wiki.frictionalgames.com/hpl2/amn..._functions ).

You can add callbacks in other functions than just OnStart():

Code:
AddEntityCollideCallback("Player", "Area_37", "Function_86", true, 1);

SetEntityActive works with areas just fine.
Yeah, you can simply do SetEntityActive("Area_Name", false); to disable an area.