About Store Forum Documentation Contact



Post Reply 
Best way for hitting animation
Author Message
Palaxe Offline
Member

Post: #1
Best way for hitting animation
HI, In 2.0 ineisis, Client, Player,
void Player.attackLeftHand()
{
if(!attack_next.is())attack_next.set(cskel, Random(2) ? UID(3400331367, 1316067987, 370210486, 700141650) : UID(787882448, 1120239788, 3222568626, 2720024685));
With out random,
if(!attack_next.is())attack_next.set(cskel, UID(162767063, 1129892034, 2684723602, 1461076362));

So this is for 1 animation Character type.

So if I was to add in another Character with a different UID type and keep the first, what would be the best way to get the animation to show as well?

Also I did set up the animation in params in Objects.

Thanks smile
03-04-2013 12:04 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Best way for hitting animation
Those are UID of animation files.
In the sample code they are hard-coded, but you can take them dynamically from custom values, like:
Game.ObjParamsPtr.findParam("anim attack").asID();
03-07-2013 04:52 PM
Find all posts by this user Quote this message in a reply
Palaxe Offline
Member

Post: #3
RE: Best way for hitting animation
Oh cool, Thanks that worked.
03-10-2013 05:07 PM
Find all posts by this user Quote this message in a reply
Post Reply