Scripts / Hide and Show Static Entity?

Author
Message
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Dec 2017 21:48
Hey all! Its been a wonderful experience being able to script everyday now. LUA for me was very easy to pick up during the Spring. Not sure why i was so intimated by it at first. I can only hope now that more hardcoded functions in Game Guru become unlocked to LUA and that more commands are created.

I have a quick question for anyone that may know. Is it possible for a script to hide and show a static entity? Perhaps even one by name? Or must they be dynamic?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 25th Dec 2017 22:38
They need to be dynamic as fart as I know.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Dec 2017 22:43 Edited at: 11th Jan 2018 19:46
Quote: "They need to be dynamic as fart as I know."

That's good to know. Im not sure how Lee is handling the navmesh stuff or how NPC's are able to navigate on floor planes. Wondering if a floor is dynamic if it would negatively affect the AI at all. Going to try some tests.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 25th Dec 2017 23:08
There are some object t id oriented functions creeping in now, don't think I saw Hide/Show for object id though.

We can supposedly relocate entities by their object id now so you could try that to see if it works.
Been there, done that, got all the T-Shirts!
PM
Teabone
Forum Support
17
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 25th Dec 2017 23:24 Edited at: 30th Dec 2017 09:41
Hide and Show id works just tested (with dynamic entities only)

Hide(1)
for example hides the object with the id of 1. Wondering if there is a way to hide by name? For instance if i had 10 objects id want to hide that were all called Barrel. Hide(barrel) nor Hide("barrel") do not work. I'd like to create something more modulator and not just based on my 1 specific map.

Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link | Patreon - Teabone3

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 26th Dec 2017 10:53
That looks like an entity Id rather than and object id, object is are normal something like '77051'.

I had always assumed that static entities didn't get an entity id but obviously they do.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2024-04-19 01:29:05
Your offset time is: 2024-04-19 01:29:05