OnCreate Extension v1.0.0.1 – FS22
This mod allows various onCreate features to be used with dynamic objects, such as placeables. Some new, custom onCreate features have been added as well. All onCreate features can be used with maps as before, including the new ones.
If this mod isn’t loaded, the onCreate features associated with the mod or map that uses them will just be skipped. You should not see errors simply because you are using a custom onCreate and this mod is not loaded.
Features currently implemented:
Rotator (THRotator.onCreate)
Allows rotating an object along a specified axis. Can be used with AnimatedObjects.
NightlightFlicker (THNightlightFlicker.onCreate)
Causes a light object to randomly flicker. Can be set to only flicker when turned on (i.e. AnimatedObjects) or simply turn on and flicker at night.
Butterfly (THButterfly.onCreate)
Causes butterflies to pop up and fly around when you get close to them. Butterflies move on a spline and have a “wings up” and “wings down” mesh associated with them.
Ship (THShip.onCreate)
Causes any object (does not have to be a ship) to move along a predefined spline. Multiple clones of the object can move around the spline if desired.
Firefly (THFirefly.onCreate)
Custom onCreate used to create a firefly effect on an object. Time off and on can be set in a range that randomly occurs.
More features are planned in the future. These are just the ones I have finished so far. There is an example.txt file in the /placeables folder of this mod along with a modified cow barn that shows how each onCreate can be used.