iWitch Posted March 1, 2014 Share Posted March 1, 2014 (edited) 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 componentsComponents 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 March 1, 2014 by iWitch Link to comment https://forums.kleientertainment.com/forums/topic/32023-component-availability/ Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now