What's keeping me there? SL ghosts?

These forums are CLOSED. Please visit the new forums HERE
llMoveToTarget, then STUCK!! |
|
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-09-2009 02:52
I have used llMoveToTarget to move to a pos, but then I cannot move anywhere afterward. I have used llWhisper before and after llMoveToTarget to signal a move is being called, but then no whisper at all after the 1st one!
What's keeping me there? SL ghosts? ![]() |
Jesse Barnett
500,000 scoville units
![]() Join date: 21 May 2006
Posts: 4,160
|
09-09-2009 03:21
Sim border?
Other then that it is gonna be hard throwing every possible cause at you without seeing the code. _____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-09-2009 04:45
once you get there you need to use llStopMoveToTarget
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
09-09-2009 15:16
You have now learned how a MoveLock works.
![]() Ruthven has it: llStopMoveToTarget() will solve your problem. |
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-10-2009 00:04
once you get there you need to use llStopMoveToTarget good stuff mate ![]() |
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-10-2009 00:06
You have now learned how a MoveLock works. ![]() Ruthven has it: llStopMoveToTarget() will solve your problem. absolutely ![]() some how I wish they used the stop function in the wiki example... |
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-10-2009 01:36
Any good way to detect if the MoveToTarget is finished other then continuously calling some check, so the script knows its time to call StopMove?
|
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-10-2009 03:21
I'm trying to use llTarget to determine if I get moved into pos. It seems that llMoveToTarget isn't in effect after calling llTarget!! And the printout from not_at_target() is of course non-stop!!
|
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-10-2009 07:37
here's a script i was using for a warp hud, not sure what you're trying to do with llmovetotarget, but this might be an overkill. probably needs some cleaning up, i never use it anymore now that i use the emerald viewer
CODE
_____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Wezza Writer
Registered User
Join date: 9 Jun 2009
Posts: 59
|
09-11-2009 01:21
thanks Ruthven Willenov,
This is a very good example, and it shows me a neat start. If I want to move FORWARD by 10m, how do I find out which direction I'm facing and calculate the new pos to move to? |
Ruthven Willenov
Darkness in your light
Join date: 16 Jan 2008
Posts: 965
|
09-11-2009 06:53
thanks Ruthven Willenov, This is a very good example, and it shows me a neat start. If I want to move FORWARD by 10m, how do I find out which direction I'm facing and calculate the new pos to move to? the same way you would figure out the local offset for any other vector, you figure out the start position, then add the offset, and multiply it by your rotation llMoveToTarget(llGetPos() + < 10.0,0.0,0.0 > * llGetRot(),tau); _____________________
Dark Heart Emporium
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=133020 want more layers for tattoos, specifically for the head? vote here http://jira.secondlife.com/browse/VWR-1449? llDetectedCollision* Functions similar to touch http://jira.secondlife.com/browse/SVC-3369 |
Vladimir Petrichor
Registered User
Join date: 6 Apr 2006
Posts: 19
|
09-11-2009 07:07
thanks Ruthven Willenov, This is a very good example, and it shows me a neat start. If I want to move FORWARD by 10m, how do I find out which direction I'm facing and calculate the new pos to move to? If you want to move forward, regardless of orientation (as forward is a relative term), use this... llGetPos() + (llRot2Fwd(llGetRot()) * 10) That tells you to go to a position equal to whatever your current position is, plus 10 meters along the forward vector. You can find out a little bit more (in relatively simple terms) about the use of llRot2Fwd and its cousins llRot2Up and llRot2Left, in this page at the Vladwerkz wiki http://vladwerkz.wikidot.com/rot2fwd-action |