Author Topic: Manually mount to a Vehicle?  (Read 580 times)

Which functions are necessary to mount a player to a vehicle, without parenting onMount. Why? To avoid the onMount sound.

you could prevent the sound from playing when its added through some code

Code: [Select]
function SoundName::onAdd(%this)
{
%this.fileName = "";
parent::onAdd(%this);
%this.fileName = "";
}
this would only work on loading datablocks so you would have to replicate the mount sound for other situations
« Last Edit: June 17, 2013, 09:57:43 AM by swollow »

mount(%vehicle, %player);  ??

mount(%vehicle, %player);  ??
I'm pretty sure that still makes the mount sound

Code: [Select]
package PhysicsJumpMount
{
function Armor::onMount(%this,%obj,%col,%slot)
{
if(%col.dataBlock !$= "PhysicsJumpVehicle")
{
parent::onMount(%this,%obj,%col,%slot);
%obj.canDismount = true;
}
if(%col.dataBlock $= "PhysicsJumpVehicle")
{
// parent::onMount(%this,%obj,%col,%slot);
}
}
};activatePackage(PhysicsJumpMount);
Where the parent is //'d out is where I need to put all the functions besides the sound.