Created
November 3, 2014 16:33
-
-
Save antonyfairport/8caf941d004d94ea0346 to your computer and use it in GitHub Desktop.
Remove textures from an object's ivnentory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CleanTextures() | |
{ | |
integer iMax = llGetInventoryNumber( INVENTORY_TEXTURE ); | |
integer i; | |
for ( i = ( iMax - 1 ); i >= 0; i-- ) | |
{ | |
llRemoveInventory( llGetInventoryName( INVENTORY_TEXTURE, i ) ); | |
} | |
} | |
default | |
{ | |
state_entry() | |
{ | |
CleanTextures(); | |
llRemoveInventory( llGetScriptName() ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment