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
GetEntitiesCollide
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
#1
GetEntitiesCollide

Does GetEntitiesCollide not support detecting whether a player is within a script area or not? Because for some reason this function is returning false for me even if I know that it should be true.

For example, the code
PHP Code: (Select All)
void OnStart(){

    
loop("TestTimer");
}

void loop(stringTimer){

    
int test;
    if(
GetEntitiesCollide("Player","ScriptArea_1")) test 1;
    else 
test 2;
        
    
AddDebugMessage(""+testfalse);
    
    
AddTimer(Timer,1,"loop");

always displays "2", even if the script area covers the entire level.

05-05-2012, 10:33 PM
Find


Messages In This Thread
GetEntitiesCollide - by Homicide13 - 05-05-2012, 10:33 PM
RE: GetEntitiesCollide - by Theforgot3n1 - 05-05-2012, 10:39 PM
RE: GetEntitiesCollide - by Your Computer - 05-05-2012, 11:10 PM
RE: GetEntitiesCollide - by Homicide13 - 05-06-2012, 01:04 AM
RE: GetEntitiesCollide - by Cranky Old Man - 05-06-2012, 01:14 AM
RE: GetEntitiesCollide - by Your Computer - 05-06-2012, 02:16 AM
RE: GetEntitiesCollide - by Homicide13 - 05-06-2012, 02:26 AM
RE: GetEntitiesCollide - by Homicide13 - 05-06-2012, 01:52 AM
RE: GetEntitiesCollide - by palistov - 05-06-2012, 08:46 AM
RE: GetEntitiesCollide - by Homicide13 - 05-06-2012, 03:48 PM
RE: GetEntitiesCollide - by palistov - 05-06-2012, 09:33 PM
RE: GetEntitiesCollide - by Homicide13 - 05-07-2012, 01:01 AM



Users browsing this thread: 1 Guest(s)