Samarack Posted April 18, 2022 Share Posted April 18, 2022 Is there a way to know how some parameter values are set? For example .... I can set a parameter like this: llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, 10 ); But how can I know in a script the actual value ? Link to comment Share on other sites More sharing options...
Jenna Huntsman Posted April 18, 2022 Share Posted April 18, 2022 While it doesn't seem to be documented behaviour, you can use llGetPrimitiveParams to return some info by calling the following: llGetPrimitiveParams([VEHICLE_ANGULAR_FRICTION_TIMESCALE,0]); Unfortunately I don't know exactly what the values returned mean (I'm not familiar with the function you're working with), but hopefully you'll be able to make some sense of it. Link to comment Share on other sites More sharing options...
Samarack Posted April 18, 2022 Author Share Posted April 18, 2022 Ohh never knew about that functions. I will give it a try. Tx. Link to comment Share on other sites More sharing options...
Samarack Posted April 18, 2022 Author Share Posted April 18, 2022 No ... it don't work ..... llGetPrimitiveParam don't seems to know value for Vehicle params. Link to comment Share on other sites More sharing options...
arton Rotaru Posted April 18, 2022 Share Posted April 18, 2022 8 minutes ago, Samarack said: No ... it don't work ..... llGetPrimitiveParam don't seems to know value for Vehicle params. It would undermine scripts no mod permissions if it would return vehicle params. 1 Link to comment Share on other sites More sharing options...
Samarack Posted April 18, 2022 Author Share Posted April 18, 2022 If I use VEHICLE_ANGULAR_FRICTION_TIMESCALE in that funtion the compiler says "Name not defined within scope" So I think that the function is unable to check that parameter value. Link to comment Share on other sites More sharing options...
arton Rotaru Posted April 18, 2022 Share Posted April 18, 2022 2 minutes ago, Samarack said: So I think that the function is unable to check that parameter value. I hope so. Like I said, returning these params is like reading no mod scripts. Link to comment Share on other sites More sharing options...
Quistess Alpha Posted April 18, 2022 Share Posted April 18, 2022 (edited) 1 hour ago, Jenna Huntsman said: llGetPrimitiveParams([VEHICLE_ANGULAR_FRICTION_TIMESCALE,0]); VEHICLE_ANGULAR_FRICTION_TIMESCALE is just a fancy equivalent of the integer 17. PRIM_TEXTURE also happens to be 17, so that code is actually just an obfuscated way for checking the texture on face 0. Edited April 18, 2022 by Quistess Alpha 1 Link to comment Share on other sites More sharing options...
Jenna Huntsman Posted April 18, 2022 Share Posted April 18, 2022 Just now, Quistess Alpha said: VEHICLE_ANGULAR)FRICTION_TIMESCALE is just a fancy equivalent of the integer 17. PRIM_TEXTURE also happens to be 17, so that code is actually just an obfuscated way for checking the texture on face 0. That would make sense - my bad! 1 Link to comment Share on other sites More sharing options...
Xiija Posted April 19, 2022 Share Posted April 19, 2022 for a script you wrote, or can mod, you could just store it in a variable? integer centering_time = 10; llSetVehicleFloatParam( VEHICLE_ANGULAR_FRICTION_TIMESCALE, centering_time ); Link to comment Share on other sites More sharing options...
Recommended Posts
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