View unanswered posts | View active topics It is currently Sat Apr 27, 2024 8:30 am



Reply to topic  [ 5 posts ] 
 Lua Bunker Modules 
Author Message
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1359
Location: USA
Reply with quote
Post Lua Bunker Modules
How would you add bunker modules to the game via lua? I tried CreateTerrainObject, but that didn't work, so i don't know what would.

Thanks :)


Sun Jun 28, 2009 2:58 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Lua Bunker Modules
Find away around IsScarp.
Spawn in MO that auto settles/spawn in MO with force deep check and terrain eating functions running.


Sun Jun 28, 2009 2:59 am
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1359
Location: USA
Reply with quote
Post Re: Lua Bunker Modules
Not near as fluent as lua as you, so how would you go at creating a script like that?


Sun Jun 28, 2009 3:02 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Lua Bunker Modules
Code:
function Update(self)
self:EraseFromTerrain()
self:ForceDeepCheck()
self.ToSettle = true
end

Just make an MO that is shaped like the bunker, and find a way around IsScrap(from the mod end).


Sun Jun 28, 2009 3:36 am
Profile
User avatar

Joined: Thu Mar 06, 2008 10:54 pm
Posts: 1359
Location: USA
Reply with quote
Post Re: Lua Bunker Modules
Okay, thanks a lot, mail. :)


Sun Jun 28, 2009 3:37 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.087s | 15 Queries | GZIP : Off ]