Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetEntitiesCollide
Author Message
Homicide13 Offline
Senior Member

Posts: 323
Joined: Nov 2010
Reputation: 14
Post: #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 all posts by this user Quote this message in a reply
Post Reply 


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



User(s) browsing this thread: 1 Guest(s)