The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Script problem with Interact. - by H. Filipe - 07-04-2011, 07:00 PM
RE: Script problem with Interact. - by rojkish - 07-04-2011, 08:15 PM
RE: Script problem with Interact. - by Kyle - 07-04-2011, 09:24 PM
RE: Script problem with Interact. - by rojkish - 07-05-2011, 12:20 AM
RE: Script problem with Interact. - by Kyle - 07-05-2011, 06:53 PM
RE: Script problem with Interact. - by H. Filipe - 07-05-2011, 04:48 PM
RE: Script problem with Interact. - by rojkish - 07-05-2011, 09:08 PM



Users browsing this thread: 2 Guest(s)