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

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

Hi

is there any way to get an entity's location or the distance to an other entity or the player?


If not, does that mean that the only way to let an entity react with other entities nearby is to place a scriptarea for every one?

Also when using the PlayerLookAtCallback a maxDistance would be nice... For example when looking at a picture a message like "What a beautiful picture" should appear, but not when the player is like 20 m away and can hardly see the picture at all. Any solution?

Thanks
(This post was last modified: 09-04-2012, 12:29 PM by craven7.)
09-04-2012, 11:06 AM
Find


Messages In This Thread
Entity's Location / Distance to Entity - by craven7 - 09-04-2012, 11:06 AM



Users browsing this thread: 5 Guest(s)