Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need Help Movind Rezzed Object

g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-24-2008 20:12
Ok, so what I am trying to do is make it so when I click on an object it will rez another object, and that rezzed object will simply jump and down once, then die.

How do I do this?
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
06-24-2008 21:29
Read here to learn how to use the touch_start event (left clicking the object triggers this event, this is where you'll put the function to rez the object):
http://wiki.secondlife.com/wiki/Touch_start

Then, read here to learn how to rez an object (from another object's contents) :

http://wiki.secondlife.com/wiki/LlRezObject

Then read here to learn how to move the rezzed object (the script will be inside the object that gets rezzed)

http://wiki.secondlife.com/wiki/LlSetPos

Then, read here to make the object die:

http://wiki.secondlife.com/wiki/LlDie

Hope that helps

http://www.secondscripter.com
_____________________
My tutes
http://www.youtube.com/johanlaurasia
g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-24-2008 22:55
This doesn't help at all.

I already know these things. What I don't know is how to get the rezzed object's code to activate when rezzed. None of these tutorials tell me.

I very much appreciate the effort... I wish someone would just post the code I need to get a rezzed object to move once it's been rezzed.
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
06-24-2008 23:29
on_rez(integer RezVal)
{
}

will be executed in a script that is within the rezzed object.
g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-24-2008 23:42
From: Squirrel Wood
on_rez(integer RezVal)
{
}

will be executed in a script that is within the rezzed object.


This code did not work.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
06-24-2008 23:55
From: g0thik Gothly
This code did not work.

Did you put anything inside the on_rez event? It can't do anything without code to run. Did you make sure that the script was running before you dragged it into the rezzer's inventory? how about posting the code that you do have?
_____________________
g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-24-2008 23:56
From: Viktoria Dovgal
Did you put anything inside the on_rez event? It can't do anything without code to run. Did you make sure that the script was running before you dragged it into the rezzer's inventory?


Yes and yes.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
06-24-2008 23:56
From: g0thik Gothly
Yes and yes.

Post your script.
_____________________
g0thik Gothly
Registered User
Join date: 30 May 2008
Posts: 8
06-26-2008 21:44
I actually figured it out!

Thanks for all the help everyone. :D