Blockland Forums > Modification Help
Force Hug on Vehicles
Lørd Tøny:
Also when you leave the vehicle you will still hug, is it possible to fix that so when you get out you don't automatically continue to hug?
billy1:
well i think the only way to fix it is reoving this force hug script from bikes
Blastdown:
Bump.
The codebit Greek2Me provided killed the standing, but the hands remain when exiting.
The idea is to have the player bring its hands up when it enters, and to keep them up until it exits.
I can not code, and the time it would take for me to figure out this thing would be a waste of time.
I'd appreciate it if someone could give me a block of code that does what I need.
Greek2me:
Try this.
--- Code: ---package HugPackage
{
function armor::onMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.dataBlock $= legoMobileVehicle)
serverCmdHug(%obj.client);
}
function armor::onUnMount(%this,%obj,%col,%slot)
{
Parent::onMount(%this,%obj,%col,%slot);
if(%col.dataBlock $= legoMobileVehicle)
%obj.playThread(0, root);
}
};
activatepackage(HugPackage);
--- End code ---
BTW, I'm guessing on the playThread bit.
Blastdown:
--- Quote from: Greek2me on April 20, 2011, 10:50:11 PM ---
--- End quote ---
It did not appear to change anything.