Help with a helmet overlay

Started by ImNotFun on

Topic category: Help with MCreator software

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with a helmet overlay

I'm making a Night-Vision helmet, and I'm having a lot of trouble with my overlay. I have a night vision overlay, and a night vision procedure that gives the player night vision and sets my "NV" global variable to 1. The overlay checks to see if the global variable is above 0 and if so then the overlay triggers. This works ok, exept when I take the helmet off the overlay still remains.

Global Variables

- NV

 

NV Helmet Procedure

Set Global: NV to: - 1 

Night Vision Overlay Procedure

Condition true if - Get Global: NV > 0

 

If anyone could help I would really appreciate it!

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hello! I`m not sure but in…
Wed, 05/06/2020 - 19:44

Hello! I`m not sure but in my opinion you must have a "while" condition:

While (condition == true) - enable overlay. If condition will be false, overlay will be closed. It`s better to learn standart codding loops :)

You you haven`t understood nothing check any tutorial bout loops