Welcome Guest ( Log In / Register ) |
Quick Lists Top RatedTutorials Living World Map G… Ultimate beginner'… Arrow scaling bug… Raising Heroes max… Creating an asset.… Simple Structure B… Proper Fire Arrow… 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 Horde Mount/Dismount Ability
14. Now comes the fun part! First, set up the special behavior modules in your object:
15. Next, set up three behaviors in the object that look something like this:
16. Now set up three more behaviors triggering the locomotor, armor, and weapon upgrade.
17. Finally, create two CommandSetUpgrade behaviors.
So what in the world did we just do?! Well, when the player presses the mount commandbutton, it activates the special power modules. The actual special power does nothing. By using the script events, it recognizes when SPECIAL_POWER_THREE is activated and it triggers a function that grants the upgrade Upgrade_HelmDefenderMount. That upgrade triggers all the PLAYER_UPGRADE behaviors to activate and adds the condition flag MOUNT to your object. Now, when the player presses the dismount button, it removes the SPECIAL_POWER_THREE condition and that triggers a function that removes the upgrade Upgrade_HelmDefenderMount and grants the upgrade Upgrade_HelmDefenderDisMount That removes all the PLAYER_UPGRADE the object has and switches the commandset back to the original one. 18. Now that it works for the human player, how about the AI? You need these three behaviors in your unit object:
To understand how it all works for the AI, please read Sûlherokhh's AI tutorial provided in the references below. He does an excellent job explaining how it all works. Links / Downloads
CommentsDisplay order: Newest first Rob38 (Team Chamber Member) - Sunday December 23, 2007 - 21:00 Ugh... ok, Sul, I tried your method and I was able to improve everything except for one thing. The animation will play when it's just an individual unit, but when it's a horde, it refuses to play one. I have tried tons of things but nothing works. I'll update this tutorial after I try some other things out. Sulherokhh (Team Chamber Member) - Friday December 21, 2007 - 19:59 Sweet! :) It sure looks perfectly functional, and since you tested it, we now all know it works!! :D Rob38 (Team Chamber Member) - Friday December 21, 2007 - 14:19 Yeah, the commandset is quite an annoyance but I can't find any other solution to the problem :( JEV3 - Friday December 21, 2007 - 11:50 Pity the commandset is so unfriendly... But to have a horde be able to mount and dismount is worth it. Rob38 (Team Chamber Member) - Thursday December 20, 2007 - 22:35 Please leave comments :) |
|||||||||||||||||||||||||||||||||||||
"One site to rule them all, one site to find them, © All Rights Reserved Eric Edwards ©2013. |