Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Area Script Question
TheGilgameshZocker Offline
Junior Member

Posts: 13
Threads: 11
Joined: Mar 2012
Reputation: 0
#1
Area Script Question

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
04-22-2012, 05:34 PM
Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#2
RE: Area Script Question

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 ).

04-22-2012, 06:13 PM
Find
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#3
RE: Area Script Question


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

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


Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-22-2012, 06:31 PM by Cranky Old Man.)
04-22-2012, 06:31 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#4
RE: Area Script Question

SetEntityActive works with areas just fine.

04-22-2012, 06:44 PM
Find
Strembitsky Offline
Senior Member

Posts: 254
Threads: 37
Joined: Feb 2012
Reputation: 3
#5
RE: Area Script Question

Yeah, you can simply do SetEntityActive("Area_Name", false); to disable an area.

The Nightmares v1.0 - Dreadful Fires WIP
04-23-2012, 03:39 AM
Find




Users browsing this thread: 1 Guest(s)