Frictional Games Forum (read-only)
How do you turn off the "hand" icon when looking at a Area trigger? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do you turn off the "hand" icon when looking at a Area trigger? (/thread-19792.html)

Pages: 1 2


How do you turn off the "hand" icon when looking at a Area trigger? - jssjr90 - 01-03-2013

I have a bit of a problem. Every time I create a new trigger area, and look at it with the cross hair, It will show up as a hand icon, which takes the immersion away allot. Now I think it does this on "Entity Interact Callback" But when I also use the other callbacks, like collide and such, it still shows the hand icon. I have seen in many other custom story's where when you are looking at the trigger area in a collide function, the hand icon does not show up, but it does for me. Does anybody know how to turn off the hand icon when looking at a trigger area collide callback type?


RE: How do you turn off the "hand" icon when looking at a Area trigger? - i3670 - 01-03-2013

You have an interact-callback either in the script or in the area itself.


RE: How do you turn off the "hand" icon when looking at a Area trigger? - jssjr90 - 01-04-2013

(01-03-2013, 11:32 PM)i3670 Wrote: You have an interact-callback either in the script or in the area itself.

I don't quit understand, how do you do that?


RE: How do you turn off the "hand" icon when looking at a Area trigger? - NaxEla - 01-04-2013

I'm not really sure what you mean by "trigger area", so I'm going to assume you mean Script Area.

In your script, add this to your OnEnter function.

PHP Code:
void OnEnter()
{
    
SetEntityInteractionDisabled("AreaName"true);




RE: How do you turn off the "hand" icon when looking at a Area trigger? - i3670 - 01-04-2013

(01-04-2013, 12:12 AM)NaxEla Wrote: I'm not really sure what you mean by "trigger area", so I'm going to assume you mean Script Area.

In your script, add this to your OnEnter function.

PHP Code:
void OnEnter()
{
    
SetEntityInteractionDisabled("AreaName"true);


EDIT: missread

Do you have any text in the PlayerInteractCallback under the "Area" tab in the script area?


RE: How do you turn off the "hand" icon when looking at a Area trigger? - NaxEla - 01-04-2013

(01-04-2013, 12:16 AM)i3670 Wrote:
(01-04-2013, 12:12 AM)NaxEla Wrote: I'm not really sure what you mean by "trigger area", so I'm going to assume you mean Script Area.

In your script, add this to your OnEnter function.

PHP Code:
void OnEnter()
{
    
SetEntityInteractionDisabled("AreaName"true);


He doesn't want the hand icon. That script would add it.

Do you have any text in the PlayerInteractCallback under the "Area" tab in the script area?

Actually no, it would not add it. It's saying that it's TRUE that interaction with the entity will be DISABLED.


RE: How do you turn off the "hand" icon when looking at a Area trigger? - jssjr90 - 01-04-2013

Hmm having trubble with this from the suggestions. Here is what I have for a simple test script.
The hand icon still shows up when looking at the script area.

//HAND ICON OFF on script area

void OnEnter()
{
AddEntityCollideCallback("Player","ScriptArea_156", "ScriptArea_156func", false, 1);
SetEntityInteractionDisabled("ScriptArea_156", true);
}

//Functionvoid ScriptArea_156func(string &in asParent, string &in asChild, int alState)
{
SetMessage("Message", "Thaughts23b", 5);
}


RE: How do you turn off the "hand" icon when looking at a Area trigger? - NaxEla - 01-04-2013

I have no clue. All I an say is make sure that it is a Script Area and not any other type of area.


RE: How do you turn off the "hand" icon when looking at a Area trigger? - jssjr90 - 01-04-2013

Don't worry it is a script area. Well maybe if I look in the original amnesia levels, maybe I can get somewhere with that.


RE: How do you turn off the "hand" icon when looking at a Area trigger? - Statyk - 01-04-2013

I believe you're looking for this function:

void ShowPlayerCrossHairIcons(bool abX);