View unanswered posts | View active topics It is currently Fri Apr 26, 2024 1:42 am



Reply to topic  [ 11 posts ] 
 Deleting terrain with lua 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post Re: Deleting terrain with lua
Not by any means I know of.


Sun Apr 10, 2011 8:04 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Deleting terrain with lua
Alright, thanks.


Sun Apr 10, 2011 10:02 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Deleting terrain with lua
EraseFromTerrain? What is that?


Sun Apr 10, 2011 11:20 pm
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Deleting terrain with lua
Never heard of that function. I'll test it.


Sun Apr 10, 2011 11:50 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Sat Feb 26, 2011 10:29 am
Posts: 163
Reply with quote
Post 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 .


Mon Apr 11, 2011 6:24 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Sat Feb 26, 2011 10:29 am
Posts: 163
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.046s | 15 Queries | GZIP : Off ]