Difference between revisions of "Avatar Commands"

From Catznip
Jump to navigation Jump to search
Line 1: Line 1:
 
Avatar control commands
 
Avatar control commands
  
==={{RLVaCommandHeader|adjustheight|{{RLVaParameter|value}}|{{RLVaCommandType|force}}}}===
+
==={{RLVaCommandHeader|adjustheight|{{RLVaParameter|value}}{{RLVaOptional|;{{RLVaParameter|factor}};{{RLVaParameter|distance}}}}|{{RLVaCommandType|force}}}}===
Sets the '''AvatarHoverOffsetZ''' debug setting raising or lowering the avatar.
+
Sets the '''AvatarHoverOffsetZ''' debug setting raising or lowering the avatar. The debug setting has roughly a -200 to 200 range.
  
<span class="rlvacmd"><value></span> is divided by 100 then applied to the debug setting. This allows for fine adjustments to be made with fewer characters when represented as a string ("3" becomes "0.03", 1 character vs 4), It's not a great saving but every byte counts.
+
'''AvatarHoverOffsetZ''' = (<span class="rlvacmd"><value> * {{RLVaOptional|{{RLVaParameter|factor}}}}) + {{RLVaOptional|{{RLVaParameter|distance}}}}</span>
  
Set '''AvatarHoverOffsetZ''' to 0.030
+
* <span class="rlvacmd">{{RLVaOptional|{{RLVaParameter|factor}}}}</span> Optional factor defaults to 0.01
 +
* <span class="rlvacmd">{{RLVaOptional|{{RLVaParameter|distance}}}}</span> Optional distance that is generally not required.
 +
 
 +
 
 +
The following both set the '''AvatarHoverOffsetZ''' to 0.03
 
<code>
 
<code>
 
{{RLVaCommand|adjustheight|3|{{RLVaCommandType|force}}}}
 
{{RLVaCommand|adjustheight|3|{{RLVaCommandType|force}}}}
 
</code>
 
</code>
 
+
<code>
 +
{{RLVaCommand|adjustheight|0.03;1|{{RLVaCommandType|force}}}}
 +
</code>
 
----
 
----
  

Revision as of 05:42, 8 June 2016

Avatar control commands

@adjustheight<value>[;<factor>;<distance>]=force

Sets the AvatarHoverOffsetZ debug setting raising or lowering the avatar. The debug setting has roughly a -200 to 200 range.

AvatarHoverOffsetZ = (<value> * [<factor>]) + [<distance>]

  • [<factor>] Optional factor defaults to 0.01
  • [<distance>] Optional distance that is generally not required.


The following both set the AvatarHoverOffsetZ to 0.03 @adjustheight3=force @adjustheight0.03;1=force


@edit=<n|y>

Prevent editing objects rezzed in world and attached to the user

  • Any active selections will be dropped.
  • Edit floater will remain open but switch to the build tab.
  • New objects can be placed (from inventory and via build) but the selection instantly drops.
  • Terrain can still be edited (terraforming & parcel division).
  • Buying objects is not affected.

@fartouch[<distance>]=<n|y>

  • [<distance>] Optional parameter that allows a distance to specified, if omitted default is 1.5m

Limit touching to within the specified radius from the users centre. if set more than once, the lowest distance is in effect.

  • The user will be unable to touch, move or edit objects beyond the distance.
  • Mouse cursor will not change to indicate objects out of range can be interacted with by touch.
  • Edit selections will drop as objects go out of range.

If a distance is omitted, prevents the user touching objects more

NOTE: The distance is not an exception so don't use @fartouch=n followed by @fartouch20=n since that will set the fartouch distance to the default 1.5m instead of the intended 20m