Es.createentitylist

From EventScripts Community Encyclopedia
This article is a stub. Please help by adding to it.



Method: createentitylist

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Creates a keygroup with a list of all entities, that are currently on the map, with info about them. It uses the entity index as the keys within that keygroup. This is the Python equivalent of: http://www.eventscripts.com/pages/es_createentitylist

Arguments

  • keygroup-name - name of the keygroup to create (be sure it doesn't already exist)
  • entityname - the name of a certain entity, such as weapon_glock, if you only want to populate the keygroup with a list of that entity type.


Examples


Notes

  • You need to call es.keygroupdelete on the keygroup created by this, or the keygroup will stay around forever.
  • The keys from the keygroup that were created with this command can be used as a indexes for es.getindexprop and es.setindexprop


See Also

blog comments powered by Disqus