AmnesiaFang
Junior Member
Posts: 3
Threads: 1
Joined: Aug 2011
Reputation:
0
|
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
RE: Enable/Disable Script Areas
You use the same function.
|
|
09-08-2011, 10:00 PM |
|
AmnesiaFang
Junior Member
Posts: 3
Threads: 1
Joined: Aug 2011
Reputation:
0
|
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 |
|
MrBigzy
Senior Member
Posts: 616
Threads: 18
Joined: Mar 2011
Reputation:
8
|
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 |
|
Pitfall
Member
Posts: 51
Threads: 5
Joined: Jun 2011
Reputation:
1
|
RE: Enable/Disable Script Areas
SetEntityActive("Area_Name", false);
|
|
09-09-2011, 03:54 AM |
|