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 problem with Interact.
H. Filipe Offline
Junior Member

Posts: 22
Threads: 6
Joined: Jun 2011
Reputation: 0
#1
Script problem with Interact.

Someone can tell me what is wrong please?

void OnStart()
{
SetEntityPlayerInteractCallback("key_2", "room", false);
}

void room(string &in asParent, string &in asChild, int alstate)
{
GiveSanityDamage(20, true);
SetEntityActive("insanity1" , true);
SetEntityActive("insanity2" , true);
SetEntityActive("insanity3" , true);
SetEntityActive("insanity4" , true);
SetEntityActive("insanity5" , true);
}

The game Starts but when i catch the key nothing happens.

E-mail: postal2DeusEx@hotmail.com
Xbox/Live Account: HUGO BOLT 0GTA0

Working on a Custom Story :)
(This post was last modified: 07-05-2011, 04:48 PM by H. Filipe.)
07-04-2011, 07:00 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#2
RE: Script problem with Interact.

Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate)
07-04-2011, 08:15 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Script problem with Interact.

(07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate)

I'm not sure if that would work because it should be (string &in asEntity). Just to let you know, you could be right. Smile

07-04-2011, 09:24 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#4
RE: Script problem with Interact.

(07-04-2011, 09:24 PM)Kyle Wrote:
(07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate)

I'm not sure if that would work because it should be (string &in asEntity). Just to let you know, you could be right. Smile

It's as I wrote actually, check the script functions page.
07-05-2011, 12:20 AM
Find
H. Filipe Offline
Junior Member

Posts: 22
Threads: 6
Joined: Jun 2011
Reputation: 0
#5
RE: Script problem with Interact.

is

(string &in asEntity)

Thanks Wink

E-mail: postal2DeusEx@hotmail.com
Xbox/Live Account: HUGO BOLT 0GTA0

Working on a Custom Story :)
07-05-2011, 04:48 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#6
RE: Script problem with Interact.

(07-05-2011, 12:20 AM)rojkish Wrote:
(07-04-2011, 09:24 PM)Kyle Wrote:
(07-04-2011, 08:15 PM)rojkish Wrote: Use (string &in entity) instead of (string &in asParent, string &in asChild, int alstate)

I'm not sure if that would work because it should be (string &in asEntity). Just to let you know, you could be right. Smile

It's as I wrote actually, check the script functions page.

It looks like you were wrong, and also the script functions page. Smile

(This post was last modified: 07-05-2011, 06:53 PM by Kyle.)
07-05-2011, 06:53 PM
Find
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#7
RE: Script problem with Interact.

Really? oh wow that's weird
(This post was last modified: 07-05-2011, 09:09 PM by rojkish.)
07-05-2011, 09:08 PM
Find




Users browsing this thread: 1 Guest(s)