Author |
Message |
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Deleting terrain with lua
Is it possible to directly delete terrain with lua without having to create any kind of particles?
|
Sun Apr 10, 2011 7:04 am |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Deleting terrain with lua
Not by any means I know of.
|
Sun Apr 10, 2011 8:04 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Deleting terrain with lua
Alright, thanks.
|
Sun Apr 10, 2011 10:02 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: Deleting terrain with lua
Yeah, the best way (I've found) is to use MOSRs set to EraseFromTerrain and then immediately deleting themselves.
|
Sun Apr 10, 2011 11:18 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Deleting terrain with lua
EraseFromTerrain? What is that?
|
Sun Apr 10, 2011 11:20 pm |
|
|
CaveCricket48
Joined: Tue Jun 12, 2007 11:52 pm Posts: 13144 Location: Here
|
Re: Deleting terrain with lua
A function. Code: mo:EraseFromTerrain(); It clears terrain that exists behind an object. Think of it as using an object as a cookie-cutter.
|
Sun Apr 10, 2011 11:45 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Deleting terrain with lua
Never heard of that function. I'll test it.
|
Sun Apr 10, 2011 11:50 pm |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Deleting terrain with lua
It's called by the engine whenever a deepcheck returns true afaik fwiw.
|
Mon Apr 11, 2011 3:32 am |
|
|
Xery
Joined: Sat Feb 26, 2011 10:29 am Posts: 163
|
Re: Deleting terrain with lua
viewtopic.php?f=1&t=22496My little tool just use that code. I'd thought of using invisible MO to delete the terrain(not to shoot it by invisible mopixels), but failed to find a feasible way .
|
Mon Apr 11, 2011 6:24 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: Deleting terrain with lua
I guess that it would be better to do that things the old way. I mean, ini diggers have always worked fine, so why bother in something more complex?
Unless I wanted to use that function for something else, of course, like some bunker buster bomb or something like it.
|
Tue Apr 12, 2011 1:51 am |
|
|
Xery
Joined: Sat Feb 26, 2011 10:29 am Posts: 163
|
Re: Deleting terrain with lua
Asklar wrote: I guess that it would be better to do that things the old way. I mean, ini diggers have always worked fine, so why bother in something more complex?
Unless I wanted to use that function for something else, of course, like some bunker buster bomb or something like it. Because I want to find a solution of digging ultrahard terrain materials, such as "Laser Barriers" in MP3. You can set the sharpness of digger particle to over 99999999 or what , but it's not so effective, because the traditional way of digging usually leaves out some small terrain particles, which could totally block you in that StructuralIntegrity. Since the sharpness is such high, the digger will be way too overpowered in fightting and could easily lead to game's crashes/lags. That last point, my tool isn't made for gold digging. Thus, the way it works is the best solution I can think of.
|
Wed Apr 13, 2011 5:40 am |
|
|
|