llSetPlayerController - Set player controller params
tracked
Jasdac Stockholm
I'm not 100% sure of the implementation, but maybe something similar to llSetAnimationOverride:
First off, you need to request a permission such as llRequestPermissions(target, PERMISSION_CONTROL_PLAYER)
llSetPlayerController(list params)
Where params is a list of PLAYER_CONTROL_* followed by data.
Suggested PLAYER_CONTROL_* settings:
PLAYER_CONTROL_JUMP_HEIGHT, (float)percent - Modifies the current jump height by percent. Some upper limit could be added. 0 would disable jumping entirely. This would be useful because the default jump height is so unrealistically high that most games end up disabling jumping altogether.
PLAYER_CONTROL_RUN_SPEED, (float)percent - Modifies the base run speed by a percentage. Some upper limit could be added, 0 disables running.
PLAYER_CONTROL_WALK_SPEED, (float)percent - Modifies the base walk speed by a percentage. 0 could disable walking entirely. An upper limit could be set. These two would be useful for games and roleplays where a player could get a temporary speed boost, or perhaps slow players down while carrying heavy objects. The one concern I can think of is running/walking animations going out of sync, but that would be up to the dev to supply appropriate animations.
PLAYER_CONTROL_CLIMB_RADIUS, (float)radians - Modifies how steep inclines the player can walk up. This would be useful because right if there's just a minuscule incline to a wall, players can walk right up it. The angle players can walk up in SL is very small.
Log In
Spidey Linden
Merged in a post:
NEW LSL llSetJumpHeight(float value); & float value llGetJumpHeight(key id);
dantia Gothly
With combat 2.0 coming out as well as many other use cases having the ability to set the jump height will help with a more immersive experience.
Currently we have no way to define or control the jump height which for most cases is already much to high. Users have scripted various versions of jump limiters however they don't provide a great experience and have a lot of limitations.
Having a UI slider in the viewer much like how we have a hover height slider would also be a really nice feature as we can also control hover height with LSL.
Jasdac Stockholm
Spidey Linden
marked this post as
tracked
Issue tracked. We have no estimate when it may be implemented. Please see future updates here.
Alkaia Exonar
There should probably be a parcel/region flag to set maximums for each of those - so some sims can allow super jumps and others can restrict it down.
Jasdac Stockholm
Permissions should probably be auto-granted on attachments.