i am trying to wrap my head around how to make a sequence play say "insert" when you call this function
function Remington870Image::onLight(%this, %obj, %slot)
{
%props = %obj.getItemProps();
%state = %obj.getImageState(%slot);
if (%props.count < 6 && (%state $= "Ready" || %state $= "Empty") && (%obj.bulletCount[%this.item.bulletType] >= 1 || %obj.bulletCount[%this.item.bulletType] == -1))
{
if ($Sim::Time - %obj.lastRemingtonInsert <= 0.2)
return 1;
%obj.lastRemingtonInsert = $Sim::Time;
if (%obj.bulletCount[%this.item.bulletType] != -1)
%obj.bulletCount[%this.item.bulletType]--;
%props.count++;
%obj.playThread(2, "plant");
serverPlay3D(Remington870InsertSound, %obj.getMuzzlePoint(%slot));
if (isObject(%obj.client))
%obj.client.updateDetailedGunHelp();
return 1;
}
return 0;
}
help me people of the blocklands