tjheldna Posted October 31, 2013 Share Posted October 31, 2013 In C++ is there any way to check if an entity has a script attached? Cheers! Quote Link to comment Share on other sites More sharing options...
Josh Posted October 31, 2013 Share Posted October 31, 2013 If the Entity::component member is NULL, no script is attached. This is not part of the official documented API and could change in the future. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
tjheldna Posted October 31, 2013 Author Share Posted October 31, 2013 Nice that would be handy, What I'm using some scripts for is to add key values to the entity. So I need to check that if there is no script attached the entity gets assigned default key values in code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.