part of cog:
-----
AiSetLookPos(guy2, GetThingPos(look1)); //guy looks at target
AiSetMoveFrame(guy2, 0); //make sure he is where he's supposed to be
AiSetMoveFrame(guy2, 1); //walk to frame 1
... //unimportant camera moves stood here
kneel2 = playkey(guy2, knl2, 1, 0x1);//kneels down and stays down.
------
So far so good, now comes a pretty long conversation, but then comes the trouble, he needs to get up again and walk back to frame 1, It partually works...
How I thought I should do it:
------
StopKey(guy2, knl2, blah);// should stop key with a .5 delay (flex blah=0.5)
sleep(1.0);
AiSetLookPos(guy2, GetThingPos(look2));// were looking again
AiSetMoveFrame(guy2, 0);// and we move
-----
It works, except that the key doesn't stop, so he turns while kneeling and then floats back.
Probably I used stopkey incorrectly...
Help
-----
AiSetLookPos(guy2, GetThingPos(look1)); //guy looks at target
AiSetMoveFrame(guy2, 0); //make sure he is where he's supposed to be
AiSetMoveFrame(guy2, 1); //walk to frame 1
... //unimportant camera moves stood here
kneel2 = playkey(guy2, knl2, 1, 0x1);//kneels down and stays down.
------
So far so good, now comes a pretty long conversation, but then comes the trouble, he needs to get up again and walk back to frame 1, It partually works...
How I thought I should do it:
------
StopKey(guy2, knl2, blah);// should stop key with a .5 delay (flex blah=0.5)
sleep(1.0);
AiSetLookPos(guy2, GetThingPos(look2));// were looking again
AiSetMoveFrame(guy2, 0);// and we move
-----
It works, except that the key doesn't stop, so he turns while kneeling and then floats back.
Probably I used stopkey incorrectly...
Help