Toggle Global Variable On Off

Status
Works as designed
Type
Product/platform
MCreator/Windows
Priority
Normal
Issue description

I'm simply trying to toggle a global boolean variable on and off when I right click with an item

The event triggers

in its simplest form it should be:

Va= not Va

If Va=true then do this else do that

the variable does not change value, it always remains false

here are some screen shots of things Ive tried and failed (in attachments)

 

 

Attachment Size
Image2.jpg128.46 KB 128.46 KB
Image3.jpg117.9 KB 117.9 KB
Image4.jpg113.01 KB 113.01 KB

Issue comments

I have tested this and it worked for me. It could be that you are using a trigger that is both server and client side and is being called twice. In such case, use Is provided world server side as an additional check. This procedure block can be found in World data tab in procedure maker.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.