From CryWiki
System.GetEntityIdByName(string)
Description
Gets the entity id by name
Arguments
- 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);
|
|