16
Modification Help / Is there a function to detect if an specific addon is running?
« on: January 14, 2012, 05:32:18 PM »
Or an arguement, anything of the sort? Or if not, a package?
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.
function Armor::onTrigger(%this, %player, %slot, %val)
{
if(%player.getMountedImage(0) $= Mac10Image.getID() && %slot $= 4 && %val)
{
if(!%obj.isMounted())
%player.mountImage(IronSightMac10Image,0);
}
else if(%player.getMountedImage(0) $= IronSightMac10Image.getID() && %slot $= 4 && %val)
{
%player.mountImage(Mac10Image,0);
}
Parent::onTrigger(%this, %player, %slot, %val);
}
I am trying to make it so when you get out of a vehicle, you will not go to the iron sights, since both the gun and vehicle use the jet button. And yes, i packaged it, but it isn't included here.
This is what it is, by the way
Planned features:
Wicked sound effects straight from the movie
Realistic devouring (already almost done, just need sound effects)
Burrowing (already done)
Leveling buildings
EDIT: I might also add an easter egg if ottospark can do this. When you press the light key it will play music simulating a digested radio.