Author Topic: Kajes Minigun Forces standing in vehicles.  (Read 1132 times)

So something i dont like about kajes minigun is that it forces players to stand when in vehicles when switched to. I think it has something to do with how its mounted but i truly dont know. If anyone knows anything about this thatd be fantastic. Ive been looking though the code for it and i found this line

Parent::onMount(%this,%obj,%slot);   
      %obj.playThread(0, root); //Attempting to make the minigun not force you to stand
}
I think the root is forcing the player to stand but i truly dont know....

root does make you stand, wtf

root does make you stand, wtf
yes it does because the sit animation is on slot 0 and root on slot 0 overrides the sit thread
try changing it to %obj.playThread(2,root);

Slot 0 is used for vehicles. Vehicles use "playthread(0, sit);" when a player enters it. Since the minigun uses slot 0, sit will be replaced by root which makes the player go back to its default position. Usually weapons use slot 2, so use that instead.
Code: [Select]
Parent::onMount(%this,%obj,%slot);
{
      %obj.playThread(2, root); //Attempting to make the minigun not force you to stand
}

Hey thanks for the fantastic help guys! I really appreciate that people like you are in the Blockland community!

Hm, didn't really know that either, thanks.

yes it does because the sit animation is on slot 0 and root on slot 0 overrides the sit thread
try changing it to %obj.playThread(2,root);

Thanks all of you!
It worked like a dream, il post the fixed version soon. All credit to kaje of course.

yes it does because the sit animation is on slot 0 and root on slot 0 overrides the sit thread
try changing it to %obj.playThread(2,root);
i mean that in the sense "wtf why did the comment say //attempting to make the minigun not force you to stand"
but yeah that's how you do it.

yah that comment was me..... I was trying to figure out how to fix it in that line so i changed it to be sit instead of root, and it didnt fix it so i decided to ask the forums.