Est near

From EventScripts Community Encyclopedia


Overview

Syntax: est_near <variable> <filter> <distance> <userid> <command>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: '

Description

Runs a command on every player within the game unit distance with in the userid that also passes as part of the filter. You can also use it with an es before it.

Note: It doesn't expand server variables!

Parameters

  • variable - a variable where you wish to store the token
  • filter - See Est_PlayerSelection for player selection help
  • distance - the number of game units a player that meets the filter must be near the userid to have the command run on them (240 is about 20 feet)
  • userid - the person you are using as the base point for the distance for your command
  • command - the command to be run on each player close enough to your targeted userid

Examples

 es_xset temp 0
 es est_near temp #t 240 event_var(userid) "es_tell server_var(temp) You are on the terrorist team and within 20 feet of event_var(es_username)!"

Notes


See also

blog comments powered by Disqus