Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer action;
- integer brush;
- default
- {
- state_entry()
- {
- llListen( 67, "", NULL_KEY, "" );
- }
- listen(integer channel, string name, key uuid, string msg)
- {
- if(msg=="LEVEL")
- {
- action=0;
- llModifyLand( action, brush );
- }
- if(msg=="RAISE")
- {
- action=1;
- llModifyLand( action, brush );
- }
- if(msg=="LOWER")
- {
- action=2;
- llModifyLand( action, brush );
- }
- if(msg=="SMOOTH")
- {
- action=3;
- llModifyLand( action, brush );
- }
- if(msg=="NOISE")
- {
- action=4;
- llModifyLand( action, brush );
- }
- if(msg=="REVERT")
- {
- action=5;
- llModifyLand( action, brush );
- }
- if(msg=="SMALL 2")
- {
- llSetScale(<2,2,.5>);
- brush=0;
- }
- if(msg=="MEDIUM 4")
- {
- llSetScale(<4,4,.5>);
- brush=1;
- }
- if(msg=="LARGE 8")
- {
- llSetScale(<8,8,.5>);
- brush=2;
- }
- if(msg!="EXIT")
- {
- llDialog(llGetOwner(),"Select Land Action or Brush Size:",["LEVEL","RAISE","LOWER","SMOOTH","NOISE","REVERT","SMALL 2","MEDIUM 4","LARGE 8","EXIT"],67);
- }
- }
- touch_start(integer total_number)
- {
- if(llDetectedKey(0)==llGetOwner())
- {
- llDialog(llGetOwner(),"Select Land Action or Brush Size:",["LEVEL","RAISE","LOWER","SMOOTH","NOISE","REVERT","SMALL 2","MEDIUM 4","LARGE 8","EXIT"],67);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement