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

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

Arguments

  • entityname - the name of a certain entity, such as weapon_glock, if you only want to populate the dictionary with a list of that entity type.


Examples

  • Getting all hostages:
hostages = es.createentitylist("hostage_entity")
allentities = es.createentitylist() # leave the parameter out if you want all entities 

Notes

See Also

blog comments powered by Disqus