GetDestructableOccluderHeight

Parameters
d destructable
comment

Returns value of field 'boch' (occH) aka "Art - Occlusion Height".

Returns 0 on failure, some objects have a real value of 0 too.

note

See: SetDestructableOccluderHeight

note

Example (Lua, 2.0.3):

winterTree = CreateDestructable(FourCC("WTst"), 0, 0, 180, 1.0, 0)
print("default: ".. GetDestructableOccluderHeight(winterTree))
SetDestructableOccluderHeight(occGround, 266)
print("changed: ".. GetDestructableOccluderHeight(occGround))
patch

1.07

Source
common.j (suggest an edit or discuss on Github)
return type
real
Source code
native          GetDestructableOccluderHeight takes destructable d returns real