Scripts / [SOLVED] How can i remove terrain permanently?

Author
Message
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 31st Dec 2021 17:25
How can i remove terrain permanently? Even when i publish the game as a standalone?


Like my game is 100 fps then when i enable terrain it drops to like 25 fps lol..

Is it possible to go into the files and remove terrain forever?

The author of this post has marked a post as an answer.

Go to answer
PM
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 31st Dec 2021 17:25 Edited at: 4th Jan 2022 20:50
111
PM
PCS
8
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 1st Jan 2022 14:22 Edited at: 1st Jan 2022 14:23
Put this on a always active entity
Current W.I.P
TheValley

Windows 10 Pro 64-bit
Intel(R) Core(TM) i5-4590S CPU @ 3.00GHz
RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 3rd Jan 2022 01:31
I Copied the script in visual studio then i put it in the script bank and set the entity to it which was a barrel and always active. I then tested the game and nothing happened where did i go wrong

Thanks
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Jan 2022 13:05
This post has been marked by the post author as the answer.
there is default scripts called goindoors.lua / gooutdoors.lua you can assign to zones, place the zones when you want the terrain (and water) to enable / disable as required when the player enters the zones
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 4th Jan 2022 20:44
Thanks small g that worked flawlessly
PM
Vitaminsea
2
Years of Service
User Offline
Joined: 23rd Dec 2021
Location:
Posted: 4th Jan 2022 20:49
Really saved my game here because its all indoors and fps was starting to tank and game was crashing left and right i really appreciate this
PM

Login to post a reply

Server time is: 2024-12-22 01:18:28
Your offset time is: 2024-12-22 01:18:28