Data Realms Fan Forums http://45.55.195.193/ |
|
Deleting terrain with lua http://45.55.195.193/viewtopic.php?f=73&t=22506 |
Page 1 of 1 |
Author: | Asklar [ Sun Apr 10, 2011 7:04 am ] |
Post subject: | Deleting terrain with lua |
Is it possible to directly delete terrain with lua without having to create any kind of particles? |
Author: | CaveCricket48 [ Sun Apr 10, 2011 8:04 am ] |
Post subject: | Re: Deleting terrain with lua |
Not by any means I know of. |
Author: | Asklar [ Sun Apr 10, 2011 10:02 pm ] |
Post subject: | Re: Deleting terrain with lua |
Alright, thanks. |
Author: | Grif [ Sun Apr 10, 2011 11:18 pm ] |
Post subject: | Re: Deleting terrain with lua |
Yeah, the best way (I've found) is to use MOSRs set to EraseFromTerrain and then immediately deleting themselves. |
Author: | Asklar [ Sun Apr 10, 2011 11:20 pm ] |
Post subject: | Re: Deleting terrain with lua |
EraseFromTerrain? What is that? |
Author: | CaveCricket48 [ Sun Apr 10, 2011 11:45 pm ] |
Post subject: | 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. |
Author: | Asklar [ Sun Apr 10, 2011 11:50 pm ] |
Post subject: | Re: Deleting terrain with lua |
Never heard of that function. I'll test it. |
Author: | Geti [ Mon Apr 11, 2011 3:32 am ] |
Post subject: | Re: Deleting terrain with lua |
It's called by the engine whenever a deepcheck returns true afaik fwiw. |
Author: | Xery [ Mon Apr 11, 2011 6:24 am ] |
Post subject: | Re: Deleting terrain with lua |
viewtopic.php?f=1&t=22496 My 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 . |
Author: | Asklar [ Tue Apr 12, 2011 1:51 am ] |
Post subject: | 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. |
Author: | Xery [ Wed Apr 13, 2011 5:40 am ] |
Post subject: | 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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |