OsSetPrimFloatOnWater
De DigiWiki.
Version du 22 septembre 2012 à 05:52 par Djphil (discuter | contributions)
// Example / Sample Script to show function use. // // Script Title: osSetPrimFloatOnWater.lsl // Script Author: WhiteStar Magic // Threat Level: VeryLow // // Notes: This sample is full opensource and available to use as you see fit and desire. // Threat Levels only apply to OSSL & AA Functions // ================================================================ // C# Source Line: public void osSetPrimFloatOnWater(int floatYN) // Inworld Script Line: osSetPrimFloatOnWater(integer floatYN); // // Example of osSetPrimFloatOnWater // integer iFloatYN = FALSE; default { state_entry() { llSay(0,"Touch to see osSetPrimFloatOnWater work. Sets TRUE / FALSE"); } touch_end(integer num) { if(iFloatYN) { iFloatYN = FALSE; llSay(0,"osSetPrimFloatOnWater = FALSE"); osSetPrimFloatOnWater(iFloatYN); } else { iFloatYN = TRUE; llSay(0,"osSetPrimFloatOnWater = TRUE"); osSetPrimFloatOnWater(iFloatYN); } } }