Working on a build right now and have hit a point where I'm looking for opinions/ thought/work arounds for one element.
I've built a gun that uses the ready jack gun script and it uses an touch_start to Detect Owner, Get Permissions if not attached, to disarm the gun (stop the animation and release controls) if attached and finally arm the gun if attached and disarmed (Start animation and take controls) and all that works fine.
The thing is that I want to add a menu function in there by using the same touch_start, right now for testing I have the menu in place of the disarm section, so the avi always stays ready with the gun.
My question I guess is do people want the disarm so they can walk around with the gun at their side or just leave it as I have it with no disarm, or is there a way around so I could have a touch to disarm (if armed) and without calling the menu unnecessarily.
Right now when the menu closes it sends the gun back to the armed state.
here is the original code snippet
<php>
touch_start(integer x)
{
if (llDetectedKey(0) != llGetOwner())
{
return;
}
else if (!llGetAttached())
{
getPerms();
}
else if (gArmed)
{
disarm();
}
else {
arm();
}
}
</php>
I hope that made sense, I've been trying to formulate this into a question and don't know if I succeeded

Thanks for any input.
Lyndz~