Power Of The Ring 3 : Campaigns Of Middle Earth Contains BFME1 Campaigns : Based on Power Of The Ring |
Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Creating an asset.… Proper Fire Arrow… Simple Structure B… Making a simple Ma… Quick and easy sno… Making patrols nea… Mods The Dwarf Holds The Peloponnesian… RJ - RotWK The Elven Alliance… Helm's Deep Last H… The Elven Alliance Special Extended E… Kings of the West… RC Mod The Wars of Arda Downloads BFME1 1.06 Widescr… Enhanced W3D Impor… Fudge's Map Pack LotR/BfME HD Logos Osgiliath Shellmap Crystals Of Ancien… 2v1 Wold The forests of Dru… Converted BFME2 an… ROTWK animations f… |
|||||||||||||||||||||||||||||||||||
Register and log in to move these advertisements down An Easy Way to Hide SubObjects Using Scripts
One Day I was looking in and out of a units ini....i was wondering how units hide a subobject (like forged blades or fire arrows) i looked in and out...up and down...all around several different units ini's I couldn't find anything to make them hide...untill today i was sifting through scipts.lua and found a scripts that was referenced through a couple files to finally end up in the units ini!!! here i will list how it works... to set the theme here I'm going to be using my new Hero My new has two knives like the corsair...but and 2 forge blades that im using for a special power...now i want to hide them... open up Data1.Big and go to scripts.lua and look for
my hero has then two forged blades named FORGED_BLADE and FORGED_Blade01 beacause i copied them from the corsair... now as you can plainly see the "OjectHideSubObjectPermantly( self "blablabla", true) scripts says hide this object in the model... but where does this Reference in the units ini??? you can look all around and you won't find it...but you will find this i'll use the wildman axeman for example:
AILuaEveltsList Entry is a reference scriptevents.xml which is also in data1.big open that up and search for:(im going to use the corsairs functions)
the OnMordorCorsairCreated is a Link to the scripts.lua! which is the same thing that tell them to hide the sub objects... so to sum it up... if i want to do make it so a unit would hide the FORGED_BLADE and FORGED_BLADE1 sub-objects i would either make a script in scripts.lua like:
and reference that in the a scriptentry in scriptevents.xml
and put that in your unit ini in this line:
AND THERE YOU HAVE IT! Credits
CommentsDisplay order: Newest first Lauri (Team Chamber Member) - Monday January 17, 2011 - 15:49 It works for BFME1 modboy451 - Saturday January 15, 2011 - 9:00 i like it this way better...that way you dont have to but it on every animation.... JUS_SAURON - Friday January 14, 2011 - 16:42 You Don't really need LUA to do this . |
|||||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |