Mods Features | Dev Diary #6
Harry Modder and the Ability to Spawn Structures and Share Code as Libraries
Modders! Now that we’ve gotten that stupid headline out of the way let’s dive into all the great tools coming to the Trailmakers modding community. We revealed two of them in the headline but two more notable changes are added utility functions and custom camera support. Enjoy!
If you wish to join our modding community and have influence on what we do with the modding tools remember to join our Discord and look for the modding channels:
Added support to set and get the team index for a player.
Added support to set the power of gyros and check if a block is a gyro.
Added support for multiple time scale multipliers. Each mod can add one time scale multiplier.
Added function to get the number of power cores of a structure.
Added function to get the block the player is seated in.
Added support to enable or disable repairing for a player.
Added support to create a ModVector3 from a string.
Added support to set the power of propellers and check if a block is a propeller.
Added support to enable or disable invincibility of the player.
Added support to kill the player and check if the player can be killed.
Add support for including other lua scripts. Lua script must be inside the 'data_static' folder. Sub-folders are not supported.
Added support to show a “subtle” message to players (all or a specific one).
Added support to change a ModGameObject texture in run-time.
Added Forward/Left/Right/Back vectors to ModTransform.
Added new Raycast function to return raycast data.
Added support to add force and torque to an rigidbody spawned with SpawnCustomObjectRigidbody()
Added getters for Transform for ModBlocks.
Added more ModVector3 utility functions.
Added function to remove an UI element for a player.
Added support to add and control a camera (1 per player can be added).
Added time of day override support.
Added structure transform support + speed of structure in m/s.
Added support to despawn a specific game object
Added color support for blocks
Added support to spawn a blueprint!
Automatic generation of mod document file