Russell Posted February 12, 2020 Posted February 12, 2020 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!!! 1 Quote
havenphillip Posted February 13, 2020 Posted February 13, 2020 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? 1 1 Quote
Russell Posted February 13, 2020 Author Posted February 13, 2020 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!!! 1 Quote
Russell Posted February 14, 2020 Author Posted February 14, 2020 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!! 4 Quote
havenphillip Posted February 14, 2020 Posted February 14, 2020 That looks cool, man. I like how you're just instinctively creating puzzles and effects. 1 Quote
Russell Posted February 14, 2020 Author Posted February 14, 2020 21 minutes ago, havenphillip said: That looks cool, man. I like how you're just instinctively creating puzzles and effects. Thank you very much!! ☺️ Quote
Recommended Posts
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.