OsCheckODE
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level=None |function_syntax=integer osCheckODE() |ossl_example=<source lang="lsl"> // // Example of osCheckODE() // Returns 1 if OpenDynamicsEngine is enabl...") |
|||
| Line 12: | Line 12: | ||
{ | { | ||
llOwnerSay("osCheckODE = " + osCheckODE()); | llOwnerSay("osCheckODE = " + osCheckODE()); | ||
| + | |||
| + | if (osCheckODE()) | ||
| + | { | ||
| + | llOwnerSay("This script requires Bullet or ubOde physics engine"); | ||
| + | } | ||
| + | |||
| + | else // if (!osCheckODE()) | ||
| + | { | ||
| + | llOwnerSay(" is not compatible with legacy ODE physics engine"); | ||
| + | } | ||
| + | |||
| + | llSleep(5.0); | ||
| + | llDie(); | ||
} | } | ||
} | } | ||
</source> | </source> | ||
| − | |description= | + | |description=That it checks if physics engine is legacy ODE and returns 1 ( TRUE ) it is is, or 0 ( FALSE ) if not. |
| | | | ||
}} | }} | ||
Revision as of 04:29, 15 April 2017
integer osCheckODE()
| |
| That it checks if physics engine is legacy ODE and returns 1 ( TRUE ) it is is, or 0 ( FALSE ) if not. | |
| Threat Level | None |
| Permissions | No permissions specified |
| Extra Delay | No function delay specified |
| Example(s) | |
// // Example of osCheckODE() // Returns 1 if OpenDynamicsEngine is enable else return 0 // default { state_entry() { llOwnerSay("osCheckODE = " + osCheckODE()); if (osCheckODE()) { llOwnerSay("This script requires Bullet or ubOde physics engine"); } else // if (!osCheckODE()) { llOwnerSay(" is not compatible with legacy ODE physics engine"); } llSleep(5.0); llDie(); } } | |