Posts: 60
Threads: 6
Joined: Dec 2010
Reputation:
0
How to make a script. For example when a player can near to the object and NPC it gives a message to player. Please help me in both part. Object and NPC
Posts: 60
Threads: 6
Joined: Dec 2010
Reputation:
0
have I asked a tough question
Posts: 380
Threads: 11
Joined: Feb 2010
Reputation:
0
I suggest you use Incognito's streamer, and create dynamic areas, then use OnPlayerEnterDynamicArea.
If not, you will have to loop through max players checking IsPlayerInRangeOfPoint, which is very resource intensive.
Posts: 60
Threads: 6
Joined: Dec 2010
Reputation:
0
do you have any other quick method
Posts: 380
Threads: 11
Joined: Feb 2010
Reputation:
0
There is no quick method, the best method is the streamed area idea
Posts: 60
Threads: 6
Joined: Dec 2010
Reputation:
0
well that would lag too much
Posts: 349
Threads: 35
Joined: Nov 2007
Reputation:
0
You can create the object and use a timer to detect if the player is near it, using IsPlayerInRangeOfPoint.
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Jordan Smith
well that would lag too much
|
No, it wouldn't. It's a more efficient method than the alternative Rachael suggested.