Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- on_rez(integer n)
- {
- if(llGetAttached())
- {
- llSetTimerEvent(0.5);
- }
- else
- {
- llSetTimerEvent(0);
- }
- }
- timer()
- {
- vector pos = llGetPos();
- float water = llWater(ZERO_VECTOR);
- if(water > pos.z)//you are under water
- {
- llSetTexture("wet texture name/uuid",ALL_SIDES);
- }
- else
- {
- llSetTexture("dry texture name/uuid",ALL_SIDES);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement