-
Notifications
You must be signed in to change notification settings - Fork 0
Lua Script API: Precaching Functions
Lokitot edited this page Dec 17, 2022
·
1 revision
It's highly recommended that you use this function on the onCreate() callback.
These functions are mainly used for avoiding a massive game freeze when an asset first gets used.
Creates a character for the 'Change Character' event.
-
name- Character name, example:pico-player,mom-car,gf, etc. -
type- Character type, 'boyfriend' for player, 'dad' for opponent, 'gf' for girlfriend.
-
name- Asset name, should be located insidemods/sounds/orassets/sounds/
-
name- Asset name, should be located insidemods/images/
NOTE: For now precacheImage is only capable of precaching images inside mods/!