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
Script Help Area let the touch symbol appear [Solved]
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#1
Area let the touch symbol appear [Solved]

I have an area, which let the thouch symbol appears..

Here are the screenshots

[Image: arear7quzdsxtp.jpg]

[Image: areasettingsjntqz1547u.jpg]

[Image: aregeneralz6o32qrbie.jpg]

And the script to it (script is working fine)

Quote://Door-Slam
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("AutoDoor", true, true);
StartPlayerLookAt("AutoDoor", 9, 9, "door");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("", 1, "stop");
}

void stop(string &in asTimer)
{
StopPlayerLookAt();
}

void OnStart()
{
AddEntityCollideCallback("Player", "SlamArea", "func_slam", true, 1);
}
Is this a bug or a mistake in the settings, thanks for help Smile

ShipinShen - YouTube
(This post was last modified: 04-23-2014, 03:39 AM by ShipinShen.)
04-22-2014, 09:26 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Area let the touch symbol appear

What is the problem here?

04-22-2014, 09:57 PM
Find
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#3
RE: Area let the touch symbol appear

(04-22-2014, 09:57 PM)Mudbill Wrote: What is the problem here?

The touch symbol appears when i'm looking towards the area

[Image: amnesia2014040stn35roiq.jpg]

ShipinShen - YouTube
(This post was last modified: 04-22-2014, 10:06 PM by ShipinShen.)
04-22-2014, 10:04 PM
Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#4
RE: Area let the touch symbol appear

Usually happens when the 'item interaction' box is ticked on your 'area' tab. Doesn't seem to be in this case.. so, wild guess: check if you have a map_cache and delete it.

[Image: mZiYnxe.png]


04-22-2014, 10:42 PM
Find
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#5
RE: Area let the touch symbol appear

You have the script box labelled "Door" in the PlayerInteractCallback in the level editor. Delete the word "Door".

The problem is because the script box has been given an interact function, "Door", and is looking for a function to call. The hand appears because of this. Should you interact with it, it would call the "Door" function, but since there is no "Door" function, it has nothing to call.

Big Grin

04-22-2014, 11:46 PM
Find
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#6
RE: Area let the touch symbol appear

(04-22-2014, 11:46 PM)HannahDJA Wrote: You have the script box labelled "Door" in the PlayerInteractCallback in the level editor. Delete the word "Door".

The problem is because the script box has been given an interact function, "Door", and is looking for a function to call. The hand appears because of this. Should you interact with it, it would call the "Door" function, but since there is no "Door" function, it has nothing to call.

Big Grin

Worked fine! Thanks!

(04-22-2014, 10:42 PM)Acies Wrote: Usually happens when the 'item interaction' box is ticked on your 'area' tab. Doesn't seem to be in this case.. so, wild guess: check if you have a map_cache and delete it.

Doesnt worked Big Grin the solution has HannahDJA Smile

ShipinShen - YouTube
(This post was last modified: 04-23-2014, 12:10 AM by ShipinShen.)
04-23-2014, 12:10 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#7
RE: Area let the touch symbol appear

Please add Solved on threads that are SOLVED please!
So add or example this : [SCRIPT] Area let the touch symbol appear = SOLVED
-
Why?
Because when it is solved people like me can help others, so we dont spend useless time like i did just now on posts\threads withc are... solved.
(This post was last modified: 04-23-2014, 12:58 AM by DnALANGE.)
04-23-2014, 12:56 AM
Find
ShipinShen Offline
Junior Member

Posts: 23
Threads: 7
Joined: Apr 2014
Reputation: 0
#8
RE: Area let the touch symbol appear

(04-23-2014, 12:56 AM)DnALANGE Wrote: Please add Solved on threads that are SOLVED please!
So add or example this : [SCRIPT] Area let the touch symbol appear = SOLVED
-
Why?
Because when it is solved people like me can help others, so we dont spend useless time like i did just now on posts\threads withc are... solved.

For sure, i make that with all my threads, but i forget this one, because i was in hurry :p

ShipinShen - YouTube
04-23-2014, 03:39 AM
Find




Users browsing this thread: 4 Guest(s)