Jump to content

Alter an existing item in a list


khonsuu
 Share

You are about to reply to a thread that has been inactive for 4266 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I have a global list type holding 75 vectors, where each of them is a regular 3D vector.  ("Global" means it is declared outside of default{}. See below). 

I want to alter the vector that is stored at list index 24, without effecting any other items in the list nor changing the size of the list.   llList2Vector() is how you access them, but how do you write to them? 

(For those of you familiar with other programming languages outside of LSL scripting -- I am attempting to create an "array of vectors" that I can both write to and read from.)

list mylist = 
[
    <-1,-1,-1>, 
    <-1,-1,-1>,
    <-1,-1,-1>,
    .
    .
    .
    <-1,-1,-1>,
];


default 
{
    state_entry {
        etc ..
}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4266 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...