396 {
397 string surface_type;
401
402 if ( is_surface_soft && !IsRuined() )
403 {
404 vector ori_rotate = "0 0 0";
405 ori_rotate[0] = Math.RandomFloat(0, 360);
406 ori_rotate[1] = Math.RandomFloat(0, 10);
407 SetOrientation(ori_rotate);
408
409 return true;
410 }
411
412 return false;
413 }
bool IsSurfaceDigable(string surface)
Checks if the surface is digable.
proto float SurfaceGetType(float x, float z, out string type)
Returns: Y position the surface was found.
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition