As you can see in this thread and few others, it appears, that:
If you have several scripts with the same script path, attached to the entity, you can call 'invokeFunction' only on first one.
Based on that, first suggestion is: please add a way to replace scriptName with scriptIndex when calling invokeFunction like we can do with 'removeScript' function.
Second suggestion is about installing upgrades. Currently modders can only remove them - they remove script and on C side upgrade disappears (from upgrades UI etc). But we can't install upgrade. We can add system upgrade to the entity, but it will not appear in the Upgrades Tab.
Update: Edited post, because you can specify script index in 'removeScript' function to remove specific script. But there is still no way to invoke function on a certain script.
Update: As of version 0.18.2 we can now install/uninstall upgrades. Thanks
Suggestion
Rinart73
As you can see in this thread and few others, it appears, that:
If you have several scripts with the same script path, attached to the entity, you can call 'invokeFunction' only on first one.
Based on that, first suggestion is: please add a way to replace scriptName with scriptIndex when calling invokeFunction like we can do with 'removeScript' function.
Second suggestion is about installing upgrades. Currently modders can only remove them - they remove script and on C side upgrade disappears (from upgrades UI etc). But we can't install upgrade. We can add system upgrade to the entity, but it will not appear in the Upgrades Tab.
Update: Edited post, because you can specify script index in 'removeScript' function to remove specific script. But there is still no way to invoke function on a certain script.
Update: As of version 0.18.2 we can now install/uninstall upgrades. Thanks
Link to comment
Share on other sites
3 answers to this suggestion
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