Author Topic: [Coding Help] Playthread function not working with onCollision  (Read 436 times)

For some reason, everything works except animating the player with this part.

Code: [Select]
function wandArcaneProjectile::OnCollision(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.getClassName() $= "Player" || %col.getClassName() $= "AIPlayer")
{
if(%col.getMountedImage(0).getName() $= "wizardWandImage")
{
if(%col.client.attunement $= "Arcane")
{
   %col.playThread(2,ShiftUp);
   ReboundProjectile(%this,%obj,%col,%fade,%pos,%normal);
   return;
}
Any help is appreciated

Fixed it, it was conflicting with the weapons own player animations due to small state times.