CS2D
Scripts
Entity Name to Type
Entity Name to Type
4 replies Hello! Is there a way to convert entity name to type?
For example:
My_Wall
-> Func_DynWall
But the name doesn't always have the type in it. I don't have the X,Y cords of the entity, just the name. DC Admin
Offline
use
entitylist
iterate over all entities and check if the name matches the one you're looking for with
entity name
use
entity typename
This isn't the fastest thing but luckily entities don't change. So if you need to get the result multiple times you should save it instead of iterating over all entities all the time.