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
#5
RE: Entity's Location / Distance to Entity

First, thanks for you effort.


So basically you create a sphere which origin is the entity which I check for its closeness? If we take my example with the doors which shall open when the player approaches, every door "gets" a sphere around itself and if the player collides with it, we know that he's in range.

Imho pretty strange that you have to do a workaround with loading the needed sphere entity instead of supporting a function for distance but ok.


Strangely when i first started your testmap, ED was always -1 || -1.
I reloaded and now it's working.

Thank you very much, I will use this method in my custom story. Should I
ever come to release it, how do you want to be mentioned in credits?
(This post was last modified: 09-04-2012, 04:44 PM by craven7.)
09-04-2012, 04:20 PM
Find


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



Users browsing this thread: 4 Guest(s)