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
Enable/Disable Script Areas
AmnesiaFang Offline
Junior Member

Posts: 3
Threads: 1
Joined: Aug 2011
Reputation: 0
#1
Enable/Disable Script Areas

So I can enable/disable entities with

SetEntityActive("Entity", bool);


But how do you enable/disable script areas? You can turn them active and inactive in the map editor but I don't see a function to do so.
(This post was last modified: 09-08-2011, 09:56 PM by AmnesiaFang.)
09-08-2011, 09:56 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Enable/Disable Script Areas

You use the same function.

Tutorials: From Noob to Pro
09-08-2011, 10:00 PM
Website Find
AmnesiaFang Offline
Junior Member

Posts: 3
Threads: 1
Joined: Aug 2011
Reputation: 0
#3
RE: Enable/Disable Script Areas

Ah didn't know if they were all separate because I noticed props had it's own setentity function as well.
09-08-2011, 10:18 PM
Find
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#4
RE: Enable/Disable Script Areas

Actually I'm not sure if that works on areas. Either way, you should use RemoveEntityCollideCallback.
09-09-2011, 12:51 AM
Find
Pitfall Offline
Member

Posts: 51
Threads: 5
Joined: Jun 2011
Reputation: 1
#5
RE: Enable/Disable Script Areas

SetEntityActive("Area_Name", false);
09-09-2011, 03:54 AM
Website Find




Users browsing this thread: 2 Guest(s)