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 Callback func doesn't get called after enemy leaves area
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#3
RE: Callback func doesn't get called after enemy leaves area

Quote: bool GetEntitiesCollide(string& asEntityA, string& asEntityB); + an if/else statement
That would work if it was constantly checking for collisions, which would require a looping timer that runs every 0.2 seconds to check. And I'm not too sure how memory-intensive having a timer run that quickly would be. But the same effect can be achieved with callbacks.

EDIT: Could this be a problem if the enemy is already within the area when I create a callback to check to see if he left?

Dark Seclusion Here
(This post was last modified: 05-24-2012, 02:02 AM by FragdaddyXXL.)
05-24-2012, 01:05 AM
Find


Messages In This Thread
RE: Callback func doesn't get called after enemy leaves area - by FragdaddyXXL - 05-24-2012, 01:05 AM



Users browsing this thread: 1 Guest(s)