Initial value of procedure

Started by katyusha8138 on

Topic category: Help with MCreator software

Active 1 year ago
Joined Jan 2024
Points:
156

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

Active 1 year ago
Joined Jan 2024
Points:
156

User statistics:

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

Sorry, I solved it myself by using global variables

Active 1 year ago
Joined Jan 2024
Points:
156

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
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

Active 1 year ago
Joined Jan 2024
Points:
156

User statistics:

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

Active 1 year ago
Joined Jan 2024
Points:
156

User statistics:

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

This is the procedure I'm using