2453 {
2454 string surfaceType;
2455 vector fireplacePosition = entity_ai.GetPosition();
2456 GetGame().
SurfaceGetType3D(fireplacePosition[0], fireplacePosition[1] + 1.0, fireplacePosition[2], surfaceType);
2457 return (
GetGame().ConfigGetInt(
"CfgSurfaces " + surfaceType +
" interior") == 1);
2458 }
proto float SurfaceGetType3D(float x, float y, float z, out string type)
Y input: Maximum Y to trace down from; Returns: Y position the surface was found.
proto native CGame GetGame()