Jump to content

How to change unit models based on terrain...


Recommended Posts

A little line of code called:

 

Temperate, EI_TROOPER.ALO,

Urban,   EI_TROOPER.ALO,

Arctic,   EI_TROOPER_Snow.ALO,

Volcanic, EI_TROOPER_Sand.ALO,

Desert,   EI_TROOPER_Sand.ALO,

Forest,   EI_TROOPER.ALO,

Swamp, EI_TROOPER.ALO

 

Neat, huh? With this, you can do pretty much anything to make units change based on environment. This can work for simply changing textures as well.

http://i61.photobucket.com/albums/h65/NightshadowDragon/RyuuKageSIG.jpg

 

http://i61.photobucket.com/albums/h65/NightshadowDragon/AoSW-JCW_Banner.jpg

Link to comment
Share on other sites

I've actually added three new terrain types (basically to replace a function I would otherwise have made in LUA, because we can't change LUA). I don't know whether or not they work, though. I did it at about midnight last night and haven't had a chance to test it...

http://i61.photobucket.com/albums/h65/NightshadowDragon/RyuuKageSIG.jpg

 

http://i61.photobucket.com/albums/h65/NightshadowDragon/AoSW-JCW_Banner.jpg

Link to comment
Share on other sites

I've actually added three new terrain types (basically to replace a function I would otherwise have made in LUA, because we can't change LUA). I don't know whether or not they work, though. I did it at about midnight last night and haven't had a chance to test it...

 

Let us know how it goes, though I imagine this should work.  The terrain type for a planet is determined by the tag in planets.xml, I just wonder if these types need to be defined in something we can't access.  Hopefully not.

Victory Mod - Space Ships in Land Battles

Legacy of War - Staff Member

Link to comment
Share on other sites

Let us know how it goes, though I imagine this should work.  The terrain type for a planet is determined by the tag in planets.xml, I just wonder if these types need to be defined in something we can't access.  Hopefully not.

 

That's what my tests are banking on. I'll know in hopefully a few hours.

http://i61.photobucket.com/albums/h65/NightshadowDragon/RyuuKageSIG.jpg

 

http://i61.photobucket.com/albums/h65/NightshadowDragon/AoSW-JCW_Banner.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

Copyright (c) 1999-2022 by SWRebellion Community - All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Star Wars(TM) is a registered trademark of LucasFilm, Ltd. We are not affiliated with LucasFilm or Walt Disney. This is a fan site and online gaming community (non-profit). Powered by Invision Community

×
×
  • Create New...