UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Custom Traverse Problem

broken avatar :(
Created 12 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
2,583 views
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
Hi i made a custom traverse, it almost works fine. It plays the animation but at the end of the node the zombie goes back to the first node.

http://gyazo.com/26e6f0d270e256b9b5f340e9aefcbcaa

Here is my anim script.
Code Snippet
Plaintext
main()
{
if( IsDefined( self.is_zombie ) && self.is_zombie && self.has_legs == true &&  self.type != "dog" )
{
jump_hedge_zombie();
}
else if( IsDefined( self.is_zombie ) && self.is_zombie && self.has_legs == false )
{
jump_hedge_crawler();
}
else if( self.type == "dog" )
{
dog_jump_up(96, 7);
}
}

jump_hedge_zombie()
{

traverseData = [];
traverseData[ "traverseAnim" ] = %ai_zombie_traverse_hedge_jump;

DoTraverse( traverseData );


}

jump_hedge_crawler()
{

traverseData = [];
traverseData[ "traverseAnim" ] = %ai_zombie_traverse_hedge_jump;

DoTraverse( traverseData );


}
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Did you teleport the zombies to the end node after the anim ended?
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
Well no, because i thought that was in the DoTraverse() function. So i probaly need to make a custom traverse function. But thanks for the idea. I will let you know if it works.
Marked as best answer by Deleted User 9 months ago
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
I tried to use a teleport but they keep getting go back to the first node. Does anyone have a example code? I also tried this wit h a default animation and that one worked flawless.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
you sure it's not the animation itself? Maybe you exported too many frame's and it's going back to the start position in the animation?
I've got about 10 - 15 custom traverse anims all using dotraverse() without any modifications..
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
Did u use notetracks or isn't that necessary?
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
Did u use notetracks or isn't that necessary?

I didn't use any notetracks for that..
broken avatar :(
  • rdvlpr
  • Deleted Member
×
broken avatar :(
rdvlpr
This user is deleted :(
Ok thanks, i'm gonna try to adjust a standard animation and see if that works. Maybe the distance between the nodes has also something todo with it. I will let you know if i manage to get it working.

Double Post Merge: November 30, 2014, 10:09:02 pm
Well it worked when i edited a stock traverse animation, so i'm gonna leave it for now. But thanks for the tips.
Last Edit: November 30, 2014, 10:09:02 pm by rdvlpr

 
Loading ...