Forum

> > CS2D > Scripts > Entity Name to Type
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Entity Name to Type

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Entity Name to Type

Mami Tomoe
User Off Offline

Zitieren
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.

alt Re: Entity Name to Type

DC
Admin Off Offline

Zitieren
• 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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht