1
Add-Ons / Re: New Duplicator 1.6.2 + Minor Bugfix
« on: January 28, 2020, 07:58:14 PM »
throwback
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
This is exactly why you do trace with functions before packaging them.Not quite, I suspect that if you have found a previous Add-on that packages ProjectileData::onCollision or even found a resource on the forum, you would simply copy the required parameters as you would think the parameters would be trivial knowledge by now. I respect that it was an error on my part (though I believe failure to not use trace was not the root of the error), an update has been made to correct the packaging error and will be available on Glass at some point.
Nowdays you can simply ask someone for the function source if applicable
function ProjectileData::onCollision(%this,%obj,%col,%fade,%pos,%norm,%impulseVector)
{
Parent::onCollision(%this,%obj,%col,%fade,%pos,%norm,%impulseVector);
}
$lastUse = 0;
function hi()
{
if(getSimTime() - $lastUse > 5000)
{
echo("hi");
$lastUse = getSimTime();
}
else
{
//Wait some more
}
}
%temp = new FxDTSBrick()
{
datablock = $uinametable[%db];
position = vectorAdd(%newPosition,vectorAdd(%client.player.getPosition(),vectorScale(%client.player.getForwardVector(),2)));
angleID = %angleID;
rotation = rotationFromAngleID(%angleID);
colorID = %newColor;
printID = getValueFromBrickStr(%line,"printID");
};
%client.player.tempbrick = %temp;
Try to remove the client field? Setting angle ID and rotation?
function SimSet::randomItem(%this)
{
return %this.getObject(getRandom(0,%this.getCount()-1));
}
BrickBreakSound.save("config/sound.cs");
save it then change the variable and execute that code inside your add-on somewhere. Then of course delete the previous one