Es getindexprop
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: 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: es_xgetindexprop [edit] DescriptionGet the value of a class property from the entity defined by index and stores it in variable. [edit] Parameters
[edit] Examples// Populate a database called 'awplist' with information // about all awps on the map or in player's hands es_xcreateentitylist awplist weapon_awp // For each awp in the database, get it's origin: es_foreachkey awpindex in awplist "es_xdoblock script/display_origin" block display_origin { es_xset awp_loc 0 es_getindexprop awp_loc server_var(awpindex) "CBaseEntity.vecOrigin" es_msg An awp was found at: server_var(awp_loc) }
[edit] Notes
[edit] See also |
