public ModifyTerrain ( UUID user, System.Vector3 pos, byte size, byte action, UUID agentId ) : void | ||
user | UUID | |
pos | System.Vector3 | Land-position (X,Y,0) |
size | byte | The size of the brush (0=small, 1=medium, 2=large) |
action | byte | 0=LAND_LEVEL, 1=LAND_RAISE, 2=LAND_LOWER, 3=LAND_SMOOTH, 4=LAND_NOISE, 5=LAND_REVERT |
agentId | UUID | UUID of script-owner |
return | void |
public void ModifyTerrain(UUID user, Vector3 pos, byte size, byte action, UUID agentId)
{
float duration = 0.25f;
if (action == 0)
duration = 4.0f;
client_OnModifyTerrain(user,(int)pos.X,(int)pos.Y,(int)pos.Z,action,(double)duration,agentId);
}