Advertisement
Guest User

Untitled

a guest
Jun 4th, 2019
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3. link_message(integer sender_num, integer num, string castingmove, key id)
  4.     {
  5.         if (castingmove=="GRASSY TERRAIN")
  6.         {
  7.             key buf = llGetAgentInfo(llGetOwner());
  8.              if ((buf & (AGENT_FLYING | AGENT_IN_AIR)) == AGENT_IN_AIR)
  9.                 {
  10.                string oldName = llGetObjectName();
  11.                llSetObjectName("");
  12.                llSay(0, "... but it failed!");
  13.                llSetObjectName(oldName);
  14.             }
  15.             else if ((buf & !(AGENT_FLYING | AGENT_IN_AIR)) == AGENT_IN_AIR)
  16.             {
  17.                 llRegionSay(-151,"clear");
  18.                 vector size=(llGetAgentSize(llGetOwner()));
  19.                 float height=((size.z)/2);
  20.                 llRezAtRoot("POKEMOVE-GRASSY TERRAIN", llGetPos() + <0,0,-height>, <0,0,0>, llGetRot(), 0);
  21.             }
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement