datablock ShapeBaseImageData(BlahRifleImage2) { offset = "0 -0.05 -0.01"; shapeFile = "weapon_energy.dts"; rotation = "0 1 0 180"; };
Then you'd just add to function WeaponImage:nMount: (for your specific weapon) %obj.mountImage(BlahRifleImage2, 4); to function WeaponImage:nUnmount: %obj.unmountImage(4);
datablock ShapeBaseImageData(laser1Image2) { offset = "0 0 0"; shapeFile = "weapon_missile.dts"; rotation = "0 1 0 180"; }; function WeaponImage::onMount: (laser1) %obj.mountImage(missileImage2, 4); function WeaponImage:nUnmount: %obj.unmountImage(4);
function laser1Image::onMount(%this,%obj,%slot) { WeaponImage::onMount(%this,%obj,%slot); %obj.mountImage(laser1Image2, 4); } function laser1Image::onUnmount(%this,%obj,%slot) { WeaponImage::onMount(%this,%obj,%slot); %obj.unmountImage(4); }
Eolk ZOMG!!! !!!
Comments
Then you'd just add
to function WeaponImage::onMount: (for your specific weapon)
%obj.mountImage(BlahRifleImage2, 4);
to function WeaponImage::onUnmount:
%obj.unmountImage(4);
Smiley Faces?
:O
:clap:
code:
If the name of your weapon image is laser1Image, your functions would look something similar to this