Supposedly the Start Parameter sent by Rez_Object and llGetStartParameter are good for something.
I have dire need of it for making amunition. Editing objects that die in 4 to 6 seconds or move on their own is very difficult. I need parts of the script to run only if it was rezzed from another object, like a gun. that way if I rez it form inventory I don't have to worry about it going away before I can edit the script..
However for some reason this morning the Start_Parameter isn't working in any sort of sincible fasion.
I ran a test sending the number 2 from an object to the object it was spawning via rez_object , and found that indeed printing the declared parameter variable gives the correct value. as in:
------------------------------------
on_rez(integer start_param)
{
llSay(0,(string)start_param);
}
output -->
object: 2
-------------------------------------
however assigning the value of start_param to a global variable doesn't work. When I tried it the new variable remained "null 0" while start_param was equal to 2. illus:
------------------------------------
on_rez(integer start_param)
{
param == start_param;
llSay(0,(string)start_param);
llSay(0,(string)param);
}
output ------->
object: 2
object: 0
-------------------------------------
This is frustrating beyond words. The way I see it, if param == start_param, and start_param == 2, then param should also equal 2. But apparently lsl didn't pass this part of the IQ test.
ARRRGGHHGHGGGHHHHH!!!!
Is their something I'm missing?
Also, I tried using llGetStartParameter();, and it also returned 0.
