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 Help Entity's Location / Distance to Entity
craven7 Offline
Member

Posts: 50
Threads: 8
Joined: Aug 2012
Reputation: 1
#7
RE: Entity's Location / Distance to Entity

Hm i can't get this to work for enemies? Any hint?
for(int i = 1; i <= 7; i++)
{
    AddEntityWithinRangeCollideCallback("servant_grunt_1" ,"door_" + i,"cbTestRange",0,2.5f);
}
This doesn't work at all.
With the wood_box01 it's working.

If i replace it with this:
for(int i = 1; i <= 7; i++)

{

    AddEntityWithinRangeCollideCallback("door_" + i" ,"servant_grunt_1,"cbTestRange",0,2.5f);

}
then I can't tell the door anything because I don't have its name because of:

string attachName = "RANGECB_ BASE: "+asBase+ " ENTITY: " + asEntity+ " RANGE: " +range;

Is there a more beautiful ^^ way to get the name of the door than searching for a keyword in the attachName?
09-04-2012, 05:42 PM
Find


Messages In This Thread
RE: Entity's Location / Distance to Entity - by craven7 - 09-04-2012, 05:42 PM



Users browsing this thread: 1 Guest(s)