Blockland Forums > Modification Help
Would it be possible to script...
<< < (3/5) > >>
Midway Sentinel:
thanks
Midway Sentinel:
would this work overall for the reload functions?

-cut-
Midway Sentinel:
redo of the script:


--- Code: ---function MA5C_ICWSImage::onLoadCheck(%this,%obj,%slot)
{
if(%obj.toolAmmo[%obj.currTool] <= 0)
%obj.setImageAmmo(%slot,0);
else
%obj.setImageAmmo(%slot,1);

if(%obj.toolAmmo[%obj.currTool] > 16)
%obj.mountImage(MA5C_ICWSImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,0);
%obj.unMountImage(MA5C_ICWSlowImage,1);


if(%obj.toolAmmo[%obj.currTool] <= 16)
%obj.mountImage(MA5C_ICWSmedImage,0);
%obj.unMountImage(MA5C_ICWSImage,0);

if(%obj.toolAmmo[%obj.currTool] <= 7)
%obj.mountImage(MA5C_ICWSlowImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,1);

}

function MA5C_ICWSImage::onReloadStart(%this,%obj,%slot)
{
%obj.toolAmmo[%obj.currTool] = 0;
%obj.unMountImage(MA5C_ICWSImage,0);
%obj.unMountImage(MA5C_ICWSmedImage,1);
%obj.mountImage(MA5C_ICWSlowImage,0);
}

function MA5C_ICWSImage::onReloaded(%this,%obj,%slot)
{
%obj.toolAmmo[%obj.currTool] = 32;
%obj.setImageAmmo(%slot,1);
}
--- End code ---
sorry for tri-post
Uxie:
hurray for syntax errors ^^^
Midway Sentinel:
lol, might you care to point them out?
Navigation
Message Index
Next page
Previous page

Go to full version