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
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Need help with making examine area unactive!

I don't think you can create a callback from an examine-area... If you just want text to show up when you click it, why not just use a regular area?

You can use the SetMessage("Category", "Entry", 0);
It'll work fine.

Trying is the first step to success.
03-28-2013, 08:46 PM
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
RE: Need help with making examine area unactive!

Use SetEntityPlayerInteractCallback.

PHP Code: (Select All)
void OnStart()
{
    
SetEntityPlayerInteractCallback("ExamineArea_2""TextGone1"true);
}

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


In Ruins [WIP]
03-28-2013, 08:55 PM
Find




Users browsing this thread: 2 Guest(s)