The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Need help with making examine area unactive!
Zaapeer Offline
Junior Member

Posts: 32
Threads: 9
Joined: Dec 2011
Reputation: 0
#1
Need help with making examine area unactive!

Hello!

I'm working on a custom story where I want a examine area to disappear (become unactive) when the player has touched it once. I use SetEntityCallbackFunc, but the examine area is still there after I've touched it.. Do areas even count as enteties? Here's my script:

void OnStart()
{
SetEntityCallbackFunc("ExamineArea_2", "TextGone1");
}

void TextGone1(string &in asEntity, string &in type)
{
SetEntityActive("ExamineArea_2", false);
}

Please help!
03-28-2013, 05:32 PM
Find


Messages In This Thread
Need help with making examine area unactive! - by Zaapeer - 03-28-2013, 05:32 PM



Users browsing this thread: 1 Guest(s)