Jump to content

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


Russell
 Share

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

 Share

×
×
  • Create New...