Help with a helmet overlay

Started by ImNotFun on Sat, 03/28/2020 - 21:48

Topic category: Help with MCreator software

Last seen on 03:50, 28. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with a helmet overlay
Sat, 03/28/2020 - 21:48

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!

Last seen on 12:27, 16. Jan 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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