Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to let avatar to walk(fly),not using keyboard and mouse?

zhangjinbao Lemon
Registered User
Join date: 25 Sep 2008
Posts: 16
09-25-2008 10:18
I want to let avatar to walk,do not use keyboards and mouse. only use scripts.

someone told me use llAvatarOnSitTarget() to connect avatar to an object and move the object,avatar should follow the object. Is it right? do you have another solution?

tks
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-25-2008 12:14
Yes. llMoveToTarget() or llApplyImpulse() from an attachment, or llPushObject() from any object owned by the subject (or land owner) should work as well.
zhangjinbao Lemon
Registered User
Join date: 25 Sep 2008
Posts: 16
tks
09-25-2008 12:37
do you have any another idea to make directly avatar to walk(fly..) without keyboards and mouse. only using scripts and do not sit an object? tks again.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-25-2008 16:46
You can place an object around them and move it physically to drag the avatar along. Just make SURE the resident is willing for this implementation (otherwise it is called caging and is against the Second Life Terms of Service and Community Standards).
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
09-25-2008 21:39
i would use a sensor and applyimpulse
_____________________
L$ is the root of all evil
videos work! thanks SL :)
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-25-2008 22:03
You could use a "jetpack".. a wearable attachment, and then apply physics commands like llMoveToTarget. Some will work, some won't.

A better question might be: What are you trying to accomplish?

The more we know about your project, the more relevant suggestions we can offer.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
zhangjinbao Lemon
Registered User
Join date: 25 Sep 2008
Posts: 16
tks, can I directly control avatar by scripts without an object?
09-26-2008 06:30
I want to remote control the avatar using XML-RPC, just send data to oder avatar to walk(fly) no keyboards and mouse.
is it the only way : that the avatar sit(connect to) an object and order the object to move?
can I directly control avatar by scripts without an object?
Zhenya Vlodovic
Registered User
Join date: 23 Sep 2008
Posts: 40
09-26-2008 07:21
The avatar doesn't have to sit on the controlling object. He can be wearing it. You can't, however, change from flying to landed or the reverse using a script. As far as I know. I don't think there's a way to sit/stand, either.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-26-2008 07:37
From: Zhenya Vlodovic
The avatar doesn't have to sit on the controlling object. He can be wearing it. You can't, however, change from flying to landed or the reverse using a script. As far as I know. I don't think there's a way to sit/stand, either.

Stand, but not sit. Heh.
zhangjinbao Lemon
Registered User
Join date: 25 Sep 2008
Posts: 16
someone suggestion
09-26-2008 08:59
Interface with the Second Life client directly, it is open source:
http://secondlifegrid.net/programs/open_source

That is mean: I have to modify second life viewer 's (second life programme which runs on my local PC to play in second ife) source code? is it right?