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
weird bugg
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#1
weird bugg

I made a script so when you pass a ceratin area a new entity appears behind you and when you reach another area a new entity appears and the other one disapears but when I enter the map and unlock the door to that room the first entity is already activated :O. I unchecked the "active" box and made a script for the activate/deactivate part.

anyone knows why?

this is how I setup the areas and entities.
[Image: lolbugg.png]

and here's the script
void OnStart()
{
AddEntityCollideCallback("Player" , "activate_wall1" , "func_activate_wall1" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall2" , "func_activate_wall2" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall3" , "func_activate_wall3" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall4" , "func_activate_wall4" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall5" , "func_activate_wall5" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall6" , "func_activate_wall6" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall7" , "func_activate_wall7" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall8" , "func_activate_wall8" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall9" , "func_activate_wall9" , true , 1);
AddEntityCollideCallback("Player" , "activate_wal0" , "func_activate_wal0" , true , 1);
AddEntityCollideCallback("Player" , "activate_wall" , "func_activate_wal1" , true , 1);
}

void func_activate_wall1(string &in asEntity)
{
SetEntityActive("wall1", true);
PlaySoundAtEntity("activate_wall1", "scrape_wood_heavy", "wall1", 0, false);
}

void func_activate_wall2(string &in asEntity)
{
SetEntityActive("wall2", true);
SetEntityActive("wall1", false);
PlaySoundAtEntity("activate_wall2", "scrape_wood_heavy", "wall2", 0, false);
}

void func_activate_wall3(string &in asEntity)
{
SetEntityActive("wall3", true);
SetEntityActive("wall2", false);
PlaySoundAtEntity("activate_wall3", "scrape_wood_heavy", "wall3", 0, false);
}

void func_activate_wall4(string &in asEntity)
{
SetEntityActive("wall4", true);
SetEntityActive("wall3", false);
PlaySoundAtEntity("activate_wall4", "scrape_wood_heavy", "wall4", 0, false);
}

void func_activate_wall5(string &in asEntity)
{
SetEntityActive("wall5", true);
SetEntityActive("wall4", false);
PlaySoundAtEntity("activate_wall5", "scrape_wood_heavy", "wall5", 0, false);
}

void func_activate_wall6(string &in asEntity)
{
SetEntityActive("wall6", true);
SetEntityActive("wall5", false);
PlaySoundAtEntity("activate_wall6", "scrape_wood_heavy", "wall6", 0, false);
}

void func_activate_wall7(string &in asEntity)
{
SetEntityActive("wall7", true);
SetEntityActive("wall6", false);
PlaySoundAtEntity("activate_wall7", "scrape_wood_heavy", "wall7", 0, false);
}

void func_activate_wall8(string &in asEntity)
{
SetEntityActive("wall8", true);
SetEntityActive("wall7", false);
PlaySoundAtEntity("activate_wall8", "scrape_wood_heavy", "wall8", 0, false);
}

void func_activate_wall9(string &in asEntity)
{
SetEntityActive("wall9", true);
SetEntityActive("wall8", false);
PlaySoundAtEntity("activate_wall9", "scrape_wood_heavy", "wall9", 0, false);
}

void func_activate_wall10(string &in asEntity)
{
SetEntityActive("wall10", true);
SetEntityActive("wall9", false);
PlaySoundAtEntity("activate_wall10", "scrape_wood_heavy", "wall10", 0, false);
}

void func_activate_wall11(string &in asEntity)
{
SetEntityActive("wall11", true);
SetEntityActive("wall10", false);
PlaySoundAtEntity("activate_wall11", "scrape_wood_heavy", "wall11", 0, false);
}

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-10-2011, 10:34 PM by xtron.)
06-10-2011, 10:33 PM
Find


Messages In This Thread
weird bugg - by xtron - 06-10-2011, 10:33 PM
RE: weird bugg - by Kyle - 06-10-2011, 11:33 PM
RE: weird bugg - by xtron - 06-10-2011, 11:35 PM
RE: weird bugg - by Kyle - 06-10-2011, 11:38 PM
RE: weird bugg - by xtron - 06-10-2011, 11:39 PM
RE: weird bugg - by Kyle - 06-10-2011, 11:41 PM
RE: weird bugg - by xtron - 06-10-2011, 11:45 PM
RE: weird bugg - by Kyle - 06-10-2011, 11:57 PM
RE: weird bugg - by xtron - 06-10-2011, 11:58 PM
RE: weird bugg - by Luis - 06-11-2011, 01:30 AM
RE: weird bugg - by xtron - 06-11-2011, 12:42 PM



Users browsing this thread: 1 Guest(s)