Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- default
- {
- link_message(integer sender_num, integer num, string castingmove, key id)
- {
- if (castingmove=="GRASSY TERRAIN")
- {
- key buf = llGetAgentInfo(llGetOwner());
- if ((buf & (AGENT_FLYING | AGENT_IN_AIR)) == AGENT_IN_AIR)
- {
- string oldName = llGetObjectName();
- llSetObjectName("");
- llSay(0, "... but it failed!");
- llSetObjectName(oldName);
- }
- else if ((buf & !(AGENT_FLYING | AGENT_IN_AIR)) == AGENT_IN_AIR)
- {
- llRegionSay(-151,"clear");
- vector size=(llGetAgentSize(llGetOwner()));
- float height=((size.z)/2);
- llRezAtRoot("POKEMOVE-GRASSY TERRAIN", llGetPos() + <0,0,-height>, <0,0,0>, llGetRot(), 0);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement