Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved Script problem with Interact.
Author Message
H. Filipe Offline
Junior Member

Posts: 22
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
H. Filipe Offline
Junior Member

Posts: 22
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #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 all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)