Initial value of procedure

Started by katyusha8138 on

Topic category: Help with MCreator software

Last seen on 07:05, 11. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Initial value of procedure

How can I set the initial value of a procedure to false and make it return true only when it is called?

I set the overlay to display when the procedure is triggered and returns true, but since the procedure returns true from the beginning, the overlay is always displayed

Last seen on 07:05, 11. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, I solved it myself by…
Mon, 05/06/2024 - 18:25

Sorry, I solved it myself by using global variables

Last seen on 07:05, 11. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But a few seconds before I…
Mon, 05/06/2024 - 18:27

But a few seconds before I set the global variable to true, the overlay appears even though the variable is not true

Last seen on 07:05, 11. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 05/06/2024 - 18:30

Last seen on 07:05, 11. May 2024
Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is the procedure I'm…
Mon, 05/06/2024 - 18:30

This is the procedure I'm using