Welcome Guest ( Log In / Register ) |
![]() |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Proper Fire Arrow… Creating an asset.… 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 The Power of the DoCommandUpgrade Behavior
You can use the docommandupgrade to do a neat trick with toggle weapons. When a Hero/CAH/Unit Is built you can have him start with as he has just toggled weapon! This is what the CAH Archer class uses so it starts with a Bow out instead of a sword...
what this Code is saying is that if if you are using the CAH class archer: we want you to put the toggle button on the commandset if its not already there and do the toggle once and then take it of the commandset, unless it was already there. (the character starts with a sword so if you removed the code createahero.ini he/she would start with a sword instead) BUT......................... If you were using this on say...faramir then it might look like this
(MUST put Upgrade_StartWithSword in the Proper Experience Level and define it in upgrade.ini, it dosent have to be Upgrade_StartWithSword it can be anything you want) Basically This Code is Saying that when he is built he will automatcally toggle weapon once. You still With Me??? Now... say you took the toggleweapon command off of faramir's commandset but you wanted to have him start with a sword (starts with bow by default) you would need to add this line in the docommandupgrade behavior:
so it would look like this:
you could also just put the toggle weapon in the commandset assinged to a button number that is 7+ EX:
if you did it like this you would not need the line:
That's it for toggle weapon! the next page is shorter Next Up: Triggering Powers CommentsDisplay order: Newest first modboy451 - Thursday December 16, 2010 - 8:31 Yes, im sure there are other uses clank234 - Thursday December 16, 2010 - 5:39 so this teaches you how to use a power straight away without cicking it??? |
![]() |
|||||||||||||||||||||||||||||||
![]() "One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |