Jump to content
Russell

Command for HIDE/SHOW or INVISIBLE/VISIBLE brushes???

Recommended Posts

Hi there team!!

I'm working very hard on my first Leadwerks game. I don't have much idea about LUA and I'm learning as I work and read how the Scripts work in ENGINE.

In my first TUTORIAL map ingame, I have created a portal very similar to a Stargate to move from a map to a different one. And I have put 2 animated cilinder object/brushes for the event horizon ...

Here you can see: Crossing Stargate

Now that I have the gate created. I want to simulate that we can ACTIVATE and DEACTIVATE it.

Do you know what command I should use to SHOW or HIDE the brushes?

I have tried to search for something on Google, but the LUA commands and sentences that I have found not worked for me.

Thank you very much team!!!

  • Like 1

Share this post


Link to post

The brushes have scripts on them? You should be able to do something like   "self.entity:Hide()"  or   "self.entity:Show()"  Is that not working?

  • Like 1
  • Thanks 1

Share this post


Link to post

It works!!! It works!!

Many thanks!!

I was trying other commands like "self.hide()"  or "self.isVisible="false" etc, etc..., but they don't work!!

Thanks a lot!!!

  • Like 1

Share this post


Link to post
On 2/13/2020 at 2:46 AM, havenphillip said:

The brushes have scripts on them? You should be able to do something like   "self.entity:Hide()"  or   "self.entity:Show()"  Is that not working?

With your help and the line code for SHOWING/HIDING entities (and many timers), i have finished my own "Galaxy Teleport System" or with Copyright name "Stargate" system. 🤣

This is the result of 2 days work:

Many thanks again havenphillip!!

  • Like 4

Share this post


Link to post
21 minutes ago, havenphillip said:

That looks cool, man. I like how you're just instinctively creating puzzles and effects.

Thank you very much!! ☺️

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...