Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Always run / Moving

Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
11-06-2006 06:49
Is there a way to add a script in a prim attachment to make the person quit moving? or turn off run?

I have tried all sorts options, like move or applyimpulse etc. just cant get it to work.

I think i might have to take controll and just disable the keys. but i really dont wanna do that.
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
11-06-2006 13:27
anyone?
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
11-06-2006 13:45
None that I am aware of.
_____________________
  1. ninjafoo Ng Says:
    November 4th, 2006 at 7:27 am
    We all love secondlife so much and were afraid that the magic will end, nothing this good can ever last…. can it?

Maker Mu
Registered User
Join date: 18 Oct 2006
Posts: 14
11-06-2006 13:50
I don't know anything, but I can throw out some ideas...

Can you make them sit and then unsit, maybe on an invisible temprezz object? Rezz an invisible wall in front of them?

Less likely to stop them:
Move the attachment up so they aren't touching the ground?
Stop the run animation?

Is it possible to make your attachment a vehicle?
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
11-07-2006 05:29
The attachment is a Combat meter which is attached to the chest.
I was thinking perhaps have a seperate script that listens for linked messages and takes controlls w/o pass though and then will return them on non stop.
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-07-2006 06:38
The best way to halt someone from moving is to take their controls and disable them. the better written combat systems use this with a death animation. llApplyImpulse is good to use if you want to slow someone down (llApplyImpulse(llGetVel()* -1), but using it to completely stop someone isn't that reliable.
_____________________
My SLExchange shop

Typos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not.


The function is working perfectly fine. It's just not working the way you wanted it to work.
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
11-08-2006 10:33
Yeah trying to make it where they can still walk but cant run. Also we dont wanna keep people from moving when dead cause some people rp moving them to a diff location.
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Martin McConnell
Registered User
Join date: 8 Sep 2006
Posts: 116
11-08-2006 10:41
From: Dimentox Travanti
Is there a way to add a script in a prim attachment to make the person quit moving? or turn off run?
QUOTE]

This has been happening to me a lot lately and I just thought it was lag. Now I know it was YOUUUU YOOUUUU I say. YOOUUUUU.

Here I've been cursing the lag monster but instead it was YYYOOUUUUUUu !! haha
Lazarus Wake
Registered User
Join date: 9 Jan 2006
Posts: 33
11-08-2006 10:59
My guess is that you could do something with llSetForce and llGetAgentInfo. If a movement key is held down and llGetAgentInfo returns AGENT_ALWAYS_RUN then some force is applied in the opposite direction through llSetForce to slow the avatar down. When the key is released llSetForce is turned off.