Blockland Files > Add-Ons
Nothing (Please delete)
Tendon:
I got rid of the "This vehicle is locked" message for this RV.
--- Code: (rvlockmsg.cs) ---package RVLockPackage
{
function RVVehicle::onCollision(%this, %obj, %col, %pos, %vel)
{
if(%obj.locked && %col.getType() & $TypeMasks::PlayerObjectType)
{
return;
}
parent::onCollision(%this, %obj, %col, %pos, %vel);
}
};
activatepackage(RVLockPackage);
--- End code ---
Compare it to the vehicle locking script.
Daniel.S:
--- Quote from: TheArmyGuy on November 19, 2018, 06:43:21 AM ---That's because that swapped out the vehicle for a static shape that is identical to the vehicle. Anyways, kick-ass stuff! Try some smoothshading on the wheels though (https://forum.blockland.us/index.php?topic=314929.0)
--- End quote ---
Wow thank you so much for linking that topic! That's going to help me a lot in the future
--- Quote from: Tendon on November 19, 2018, 10:27:27 AM ---I got rid of the "This vehicle is locked" message for this RV.
--- Code: (rvlockmsg.cs) ---package RVLockPackage
{
function RVVehicle::onCollision(%this, %obj, %col, %pos, %vel)
{
if(%obj.locked && %col.getType() & $TypeMasks::PlayerObjectType)
{
return;
}
parent::onCollision(%this, %obj, %col, %pos, %vel);
}
};
activatepackage(RVLockPackage);
--- End code ---
Compare it to the vehicle locking script.
--- End quote ---
wow thank you! So I just insert rvlockmsg.cs into Vehicle_Rv and I'm ready to go?
SWAT One:
Perfect for those meth lab rps
Soviet Narwhal:
--- Quote from: SWAT One on November 19, 2018, 08:13:44 PM ---Perfect for those meth lab rps
--- End quote ---
i cook that real good blue stuff hit me up bro
Daniel.S:
Hahaha I should make a breaking bad version