This script allows you to create negated conditional branches in your events. For example, if your conditional branch tests “if actor exists”, then the negated conditional branch tests “if actor does not exist”.
The purpose is to provide negation logic without having to figure out how to write the condition as a script call.
Script: download here
In the script editor, place this script below Materials and above Main
To turn a conditional branch into a negate conditional branch, create a
comment before a conditional branch and write
A number of users have pointed out that this function can be done easily using the “else” branch in the event. The purpose of this script is to allow you to negate the condition, which can be used in many places and not just for regular event processing. The following scripts all support the negated conditional branches, where using the “else” branch is not an option:
Forgive me if I overlooked something, but what benefit does this script serve? – Couldn’t you just as easily check a condition, leave the “true” branch empty, and fill in the “else” branch?
It was mainly just a test. Not every script I write has practical uses lol
Thank you for this!
Really nice 😀