wiki:mdtest
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
wiki:mdtest [2025/05/09 23:52] – pogdog | wiki:mdtest [2025/05/09 23:58] (current) – pogdog | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | # Object activator and what they do. | + | DELETEME |
- | < | + | |
- | + | ||
- | # Beginning | + | |
- | + | ||
- | `ObjectActivator` is one of the most important tools under your belt of Ultrakill scripts. It allows you to simply activate a gameobject when the gameobject that has this script is activated (a chain), or more importantly, | + | |
- | + | ||
- | It has 2 overridable methods, in which you can go to the `OnActivate()` (< | + | |
- | + | ||
- | <div style=" | + | |
- | < | + | |
- | <img src=" | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | --- | + | |
- | + | ||
- | # Behaviour | + | |
- | + | ||
- | This script has 2 behaviours. | + | |
- | + | ||
- | * If it has no Box Collider, activate the objects and run the `OnActivate()` method. | + | |
- | * If there is, activate the objects and run the `OnActivate()` **ONCE** the player enters the trigger. | + | |
- | + | ||
- | --- | + | |
- | + | ||
- | # Fields | + | |
- | + | ||
- | < | + | |
- | + | ||
- | This means the gameobject can be activated only once. Further reactivation of the gameobject (such as rewalking into trigger or activating it and disactivating it) will not trigger anything else if this field is set to true. | + | |
- | + | ||
- | < | + | |
- | + | ||
- | This reverses the statements once the player walks out of trigger or the gameobject getting disabled. | + | |
- | + | ||
- | Example: `To Activate Object` has its objects disactivated once the player walks out of the trigger or the gameobject gets disabled and objects under `To Dis Activate Objects` become active, and On `Dis Activate()` events run. | + | |
- | + | ||
- | < | + | |
- | + | ||
- | If this is enabled, events will not be activated when the object becomes active. | + | |
- | + | ||
- | ### Reactivate On Enable | + | |
- | This is required for non-trigger based Object Activators. If you want to run the events every time the Game Object becomes active, this has to be enabled, even if `One Time` is not ticked. | + | |
- | + | ||
- | ### Delay | + | |
- | Events will ran after specified amount of time in seconds. Can use decimal numbers. This can be cancelled if the Object Activator gets deactivated | + | |
- | + | ||
- | ### OBAC | + | |
- | Requires a Game Object that has an Object Activation Check component on it, functioning similarly to an " | + | |
- | + | ||
- | ### For Enemies | + | |
- | If the Game Object that has an Object Activator also has a trigger on it, it will only be able to be triggered by enemies. | + | |
- | + | ||
- | --- | + | |
- | + | ||
- | This gameobject runs a [ULTRAKILL Event](ULTRAKILL-Event) | + | |
wiki/mdtest.txt · Last modified: 2025/05/09 23:58 by pogdog