OsSetWindParam
From OpenSimulator
(Difference between revisions)
m (some format conversions) |
m |
||
Line 43: | Line 43: | ||
} | } | ||
</source> | </source> | ||
− | | | + | |description=Sets '''value''' of '''param''' property for '''plugin''' module. |
− | + | ||
− | + | Available parameters: | |
+ | {{{!}}border="1" cellspacing="0" width="90%" | ||
+ | !'''plugin'''{{!}}{{!}}'''param'''{{!}}{{!}}description{{!}}{{!}}default{{!}}{{!}}OpenSim.inisetting | ||
+ | {{!}}- | ||
+ | {{!}}SimpleRandomWind{{!}}{{!}}strength{{!}}{{!}}wind strength{{!}}{{!}}1.0f{{!}}{{!}}strength | ||
+ | {{!}}- | ||
+ | {{!}}rowspan="5"{{!}}ConfigurableWind{{!}}{{!}}avgStrength{{!}}{{!}}average wind strength{{!}}{{!}}5.0f{{!}}{{!}}avg_strength | ||
+ | {{!}}- | ||
+ | {{!}}avgDirection{{!}}{{!}}average wind direction in degrees{{!}}{{!}}0.0f{{!}}{{!}}avg_direction | ||
+ | {{!}}- | ||
+ | {{!}}varStrength{{!}}{{!}}allowable variance in wind strength{{!}}{{!}}5.0f{{!}}{{!}}var_strength | ||
+ | {{!}}- | ||
+ | {{!}}varDirection{{!}}{{!}}allowable variance in wind direction in +/- degrees{{!}}{{!}}30.0f{{!}}{{!}}var_direction | ||
+ | {{!}}- | ||
+ | {{!}}rateChange{{!}}{{!}}rate of change{{!}}{{!}}1.0f{{!}}{{!}}rate_change | ||
+ | {{!}}} | ||
+ | |additional_info=*As of 0.7.1.1, this function is unavailable ([http://opensimulator.org/mantis/view.php?id=5562 Mantis #5562]). It will be available on 0.7.2-dev or later. | ||
| | | | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 20:54, 1 July 2011
osSetWindParam(string plugin, string param, float value);
| ||||||||||||||||||||||||||||||||
Sets value of param property for plugin module.
Available parameters:
| ||||||||||||||||||||||||||||||||
Threat Level | VeryLow | |||||||||||||||||||||||||||||||
Permissions | No permissions specified | |||||||||||||||||||||||||||||||
Extra Delay | No function delay specified | |||||||||||||||||||||||||||||||
Example(s) | ||||||||||||||||||||||||||||||||
Sets all available parameters of current active wind plugin module:
// osSetWindParam() sample // Touch this object to change the current wind parameters // Run osGetWindParam() sample to check if these values are applied float newStrength = 30.0; float newAvgStrength = 15.0; float newAvgDirection = 10.0; float newVarStrength = 7.0; float newVarDirection = -30.0; float newRateChange = 8.0; default { touch_start(integer number) { string activePluginName = osWindActiveModelPluginName(); if(activePluginName == "SimpleRandomWind") { llSay(0, "[SimpleRandomWind]"); osSetWindParam("SimpleRandomWind", "strength", newStrength); llSay(0, "wind strength(strength) is changed to " + (string)newStrength); } else if(activePluginName == "ConfigurableWind") { llSay(0, "[ConfigurableWind]"); osSetWindParam("ConfigurableWind", "avgStrength", newAvgStrength); llSay(0, "average wind strength(avg_strength) is changed to " + (string)newAvgStrength); osSetWindParam("ConfigurableWind", "avgDirection", newAvgDirection); llSay(0, "average wind direction in degrees(avg_direction) is changed to " + (string)newAvgDirection); osSetWindParam("ConfigurableWind", "varStrength", newVarStrength); llSay(0, "allowable variance in wind strength(var_strength) is changed to " + (string)newVarStrength); osSetWindParam("ConfigurableWind", "varDirection", newVarDirection); llSay(0, "allowable variance in wind direction in +/- degrees(var_direction) is changed to " + (string)newVarDirection); osSetWindParam("ConfigurableWind", "rateChange", newRateChange); llSay(0, "rate of change(rate_change) is changed to " + (string)newRateChange); } } } | ||||||||||||||||||||||||||||||||
Notes | ||||||||||||||||||||||||||||||||
*As of 0.7.1.1, this function is unavailable (Mantis #5562). It will be available on 0.7.2-dev or later. |