GetDestructableName
- Parameters
-
d destructable
- comment
Returns localized name for destructable.
Example (Lua):
d = CreateDestructable(FourCC("LTbr"), 96, 0, 180, 1, 0) print(GetDestructableName(d)) --> "Barrel"
- async
- This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
- note
See:
GetUnitName
,GetItemName
,GetObjectName
.- patch
1.13
- Source
- common.j
- return type
string
- Source code
native GetDestructableName takes destructable d returns string