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
Why doesnt it work?
Angerpull Offline
Member

Posts: 88
Threads: 24
Joined: Jun 2011
Reputation: 0
#1
Why doesnt it work?

Hello. I made a script that when I walk into an area, I want a object to disappear, and reappear in a another area. I have a bust on a couple of drawers and I want that to disappear and appear infront of the door (creepy).

So what is wrong with my script? The bust appear right away when I enter the map, so I cannot enter the room cuz the damn thing is blocking my way. And yes I have checked off the 'Active' thing on the entity. Still it appears!

Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "Bustie", "Bustied", true, 1);
}

void Bustied(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Bustie" , true);
SetEntityActive("Bustie2" , false);
}
(This post was last modified: 07-06-2011, 07:32 AM by Angerpull.)
07-06-2011, 02:46 AM
Find


Messages In This Thread
Why doesnt it work? - by Angerpull - 07-06-2011, 02:46 AM
RE: Why doesnt it work? - by Kyle - 07-06-2011, 02:51 AM
RE: Why doesnt it work? - by Angerpull - 07-06-2011, 02:57 AM
RE: Why doesnt it work? - by cook - 07-06-2011, 04:27 AM
RE: Why doesnt it work? - by Angerpull - 07-06-2011, 05:26 AM
RE: Why doesnt it work? - by cook - 07-06-2011, 05:43 AM
RE: Why doesnt it work? - by Roenlond - 07-06-2011, 10:26 AM
RE: Why doesnt it work? - by jens - 07-06-2011, 10:54 AM



Users browsing this thread: 1 Guest(s)