|
Keno Pontoppidan
Registered User
Join date: 20 Oct 2005
Posts: 75
|
07-26-2006 18:35
Does anyone know of a way for a attachment to detect if the owner is in mouselook? Thank in advance.
|
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
07-26-2006 18:56
if(llGetAgentInfo(llGetOwner()) & AGENT_MOUSELOOK) { //Owner is in mouselook }else{ //Owner is not in mouselook } This will need to be run in a timer, preferably 1 second or slower to reduce sim load. However, if you're talking about changing animations when holding a gun and moving to mouselook; that's part of the anim itself I think, though I'm not certain.
|
|
Angela Salome
Registered User
Join date: 6 Oct 2005
Posts: 224
|
07-27-2006 02:30
From: Kayla Stonecutter ...if you're talking about changing animations when holding a gun and moving to mouselook; that's part of the anim itself I think, though I'm not certain. Yes, SL will automatically switch between the holding and aiming animation and back again as the user goes into and out of mouselook.
|