Jump to content

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 :-)?

Edited by iWitch
Link to comment
https://forums.kleientertainment.com/forums/topic/32023-component-availability/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...