H. Filipe
Junior Member
Posts: 22
Threads: 6
Joined: Jun 2011
Reputation:
0
|
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 |
|
rojkish
Junior Member
Posts: 45
Threads: 0
Joined: Jun 2011
Reputation:
0
|
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 |
|
Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
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.
|
|
07-04-2011, 09:24 PM |
|
rojkish
Junior Member
Posts: 45
Threads: 0
Joined: Jun 2011
Reputation:
0
|
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.
It's as I wrote actually, check the script functions page.
|
|
07-05-2011, 12:20 AM |
|
H. Filipe
Junior Member
Posts: 22
Threads: 6
Joined: Jun 2011
Reputation:
0
|
RE: Script problem with Interact.
is
(string &in asEntity)
Thanks
E-mail: postal2DeusEx@hotmail.com
Xbox/Live Account: HUGO BOLT 0GTA0
Working on a Custom Story :)
|
|
07-05-2011, 04:48 PM |
|
Kyle
Posting Freak
Posts: 911
Threads: 36
Joined: Sep 2010
Reputation:
7
|
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.
It's as I wrote actually, check the script functions page.
It looks like you were wrong, and also the script functions page.
(This post was last modified: 07-05-2011, 06:53 PM by Kyle.)
|
|
07-05-2011, 06:53 PM |
|
rojkish
Junior Member
Posts: 45
Threads: 0
Joined: Jun 2011
Reputation:
0
|
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 |
|
|