Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ResourceNameUtils.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
7 static ResourceName GetPrefabName(IEntity entity)
8 {
9 if (!entity || !entity.GetPrefabData())
10 return ResourceName.Empty;
11
12 return SCR_BaseContainerTools.GetPrefabResourceName(entity.GetPrefabData().GetPrefab());
13 }
14
15 //------------------------------------------------------------------------------------------------
17 static string GetPrefabGUID(ResourceName prefab)
18 {
19 if (prefab.IsEmpty())
20 return ResourceName.Empty;
21
22 return prefab.Substring(1, 16);
23 }
24}
proto external EntityPrefabData GetPrefabData()