Game Development Community

why setActionThread animation is randomly show play animation?

by Enel · in Torque 3D Professional · 01/14/2010 (10:48 am) · 5 replies

i have magic spell Animation and this play with setActionthread..

but sometime isnt play my spell animation

why this problem happend?


and than how can i solve it?

#1
01/14/2010 (11:12 am)
It is not a good idea to play your magic sequence with setActionthread(),because the action thread can control a single sequence and this thread is occupied all the time.
Therefore what happens is that when you set your sequence,then it is reset with another sequence.

I think you have 3 options:

1.You can use a weapon animation for it (may be this is not your goal).
2.You can use playthread()
3.You can forceset your sequence with the wait flag directly in c++
#2
01/14/2010 (11:52 am)
@Ivan

PlayThread() is need to set bland Animation

and it is uncomfortable for Animater..


and.. i already use forceSet.. like this

ConsoleMethod( Player, setActionThread, bool, 3, 8, "(string action, bool forward, bool hold, bool wait, bool fsp, bool forceSet)")
{
	bool forward = (argc > 3)? dAtob(argv[3]): true;
	bool hold = (argc > 4)? dAtob(argv[4]): false;
	bool wait  = (argc > 5)? dAtob(argv[5]): false;
	bool fsp  = (argc > 6)? dAtob(argv[6]): false;
	bool forceSet  = (argc > 7)? dAtob(argv[7]): true;

	return object->setActionThread(argv[2],forward,hold,wait,fsp,forceSet);
}

i think forceSet isnt work currently :(..

#3
01/14/2010 (12:02 pm)
I think forceset is not exposed in script methods.
I can assure you it works in c++.
#4
01/14/2010 (12:26 pm)
hmm.. i have change forceset C++ code..

it is better than previous..

but still sometime dosent working
#5
01/14/2010 (12:29 pm)
i find console Method 'setArmThread' what is this?

when i use this, T3D is crashed..