Skip to content

Some modding questions #4319

Discussion options

You must be logged in to vote

The way that script 'hack' works is by tricking unity into loading the script from the already in-game class instead of the one you defined.

Most of the ones in that repo should work. If you want to double check you can either decompile the game or check this repository run by DiFFoZ: https://github.com/Unturned-Datamining/Unturned-Datamining (only the ones with namespace SDG.Something near the top of the file will show up in there though.)

You can define any field, method, or property in your version of the script that's defined in the original script and it should reference the in-game version when bundled.

Other than those, you just can't use custom scripts in mods, no way around it (o…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Blackwolf0726
Comment options

@DrDallas1
Comment options

@Blackwolf0726
Comment options

@DanielWillett
Comment options

@Blackwolf0726
Comment options

Answer selected by Blackwolf0726
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants