Blockland Forums > Modification Help
Force Hug on Vehicles
(1/6) > >>
Blastdown:
All I've got is this hugPackage from Racer's motorbike.
But it forces standing as well.

I would appreciate plain ol' force huggage for when one enters the vehicle.


--- Quote ---package HugPackage
{
   function armor::onMount(%this,%obj,%col,%slot)
   {
      Parent::onMount(%this,%obj,%col,%slot);
      if(%col.dataBlock $= legoMobileVehicle)
      {
         %obj.playThread(0, armreadyboth);
      }
   }
};
activatepackage(HugPackage);
--- End quote ---

Any help?

Image for Tony.
otto-san:
make them sit after they hug?
Lørd Tøny:
Post a picture of what happens for people to see.
Blastdown:

--- Quote from: otto-san on April 11, 2011, 08:25:43 PM ---make them sit after they hug?

--- End quote ---

I don't know how to do that. :o
Greek2me:
Just use the built-in hug command.


--- Code: ---package HugPackage
{
   function armor::onMount(%this,%obj,%col,%slot)
   {
      Parent::onMount(%this,%obj,%col,%slot);
      if(%col.dataBlock $= legoMobileVehicle)
         serverCmdHug(%obj.client);
   }
};
activatepackage(HugPackage);
--- End code ---
That should work. I think I got the variable for the client right (%obj.client).
Navigation
Message Index
Next page

Go to full version