Hello. I'm having a problem with player vehicles.
...
numMountPoints = 1;
mountThread[0] = "sit";
mountNode[0] = 2;
...
This is supposed to make the player "sit" right? No, it doesn't. Try it yourself. Note that it is at mount2 not mount0. mount0 do work, but it is not my plan, since mount0 and mount1 are place holders for weapons.
Now I made this "hack" to force "sit" the player:
//Sit hack. Sit animation on blockhead won't work so I had to do this
package sitCow {
function armor::onMount(%this,%obj,%col,%slot)
{
parent::onMount(%this,%obj,%col,%slot);
if(%col.getDataBlock() == CowArmor.getID())
%obj.playThread(3,"sit");
}
};
activatePackage(sitCow);
Yes, the Blockhead does sit. Now I added this line to make sure it returns to the "root" state:
function CowArmor::onDriverLeave(%obj, %player)
{
%player.schedule(33, playThread, 3, "root");
}
Unfortunately it stays at the "sit" position. It only returns to the "root" state when I activate/fire.
Any suggestions on how to force the player into the "root" state?
Tried:
- Using the playthread on slots 0 to 7, never worked.
- Doubling the playthread
- Using %obj.client, %obj.client.player, and %player
Halp D: I can't continue with the cow update