English Entity Name to Type

4 replies
Goto Page
To the start Previous 1 Next To the start
06.05.19 01:06:35 pm
Up
Goo
User
Offline Off
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.
06.05.19 01:59:52 pm
Up
Gaios
Security Supporter
Offline Off
cs2d lua cmd entity
typename
06.05.19 05:20:46 pm
Up
Goo
User
Offline Off
I don't have the X,Y cords of the entity, just the name.
06.05.19 07:24:13 pm
Up
DC
Admin
Offline Off
• use cs2d lua cmd entitylist
• iterate over all entities and check if the name matches the one you're looking for with cs2d lua cmd entity name
• use cs2d lua cmd 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.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
06.05.19 08:10:23 pm
Up
Goo
User
Offline Off
Okay thanks.
To the start Previous 1 Next To the start