Occurs before a loading screen, but only after a Zone had been previously loaded. Zone Teardown - Occurs every time the zone is torn down.
#SIMS 4 RESOURCE CHINESE UPDATE#
Zone Update - Occurs every time the zone updates. Human to Mermaid or Human to Vampire or vice verse) Occult Swapping - Occurs when a Sim changes to a different Occult (i.e. Initialization - Occurs when a Sim is initialized (before being spawned). Spawn - Occurs when a Sim spawns or is born into the world. Interaction events (Queued, Started, Ended, Interaction Outcomes) Run functions once, after an amount of time has passed. Run functions on millisecond intervals. Handle events without needing a reference to the code that sends the event. Create, Dispatch, and Handle Dynamic Events
#SIMS 4 RESOURCE CHINESE HOW TO#
Locate CommonInteraction for an example of how to utilize custom tooltips in your own interactions.
Display tooltips on interactions that display on hover. Run Python code when an interaction is started, cancelled, or has finished. Or display an interaction as disabled, with a displayed tooltip that shows when the player hovers the interaction. Perform logical checks to determine whether or not to show an interaction Terrain Interaction - Use for interactions that appear when clicking on the ground. Social Mixer Interaction - Use this for custom Social Mixer interactions. Mixer Interaction - Use this for custom Mixer interactions. (sim_chat is one example of a Super Interaction) Super Interaction - Like the Immediate Super interaction but these require a target to perform. It is started immediately and without an animation. Immediate Super Interaction - An interaction that doesn't require a target to perform. CommonInteraction - Inherit from this to hook into an interaction and add python functionality to its functions Create interactions the run Python code in their backends Basic Notification - Display a notification with a title and description of varying urgency. Prompt the player to choose a sim or a number of sims from a dialog. Story Dialogs (Add custom buttons, add sim icons) Catch exceptions within your functions via a decorator Log to a file exceptions that are thrown
Enable / Disable logs via a command in-game. `s4clib.enable_log ` Log the current stack trace, find out who or what is calling your functions!