System GetEntityIdByName

From CryWiki

Jump to: navigation, search

System.GetEntityIdByName(string)

Description

Gets the entity id by name

Arguments

  1. Name of the entity

Returns

The id of the entity (userdata)

Example

Lua (example)
local id = System.GetEntityIdByName("Grunt1");
Log("Our grunt has id "..id);


Personal tools