Jump to content

component availability


Recommended Posts

how to check the availability of a component?

 

i am not talking about vanilla components which can be checked directly by file presence. Question is about custom components from mods.

 

for prefabs there PrefabExists function, but entityscript.lua doesnt have same function for components

Components variable is local

 

so any ideas?

 

for example if i make new class based on EntityScript, whether it will have access to local variables in entityscript.lua? i guess not.

 

so maybe any LUA magic with getmetatable or such :-)?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...