Garry's Mod Wiki

Revision Difference

CNavArea:GetHidingSpots#518199

<function name="GetHidingSpots" parent="CNavArea" type="classfunc"> <description> Returns a table of good hiding spots in this area. See also <page>CNavArea:GetExposedSpots</page>. </description> <realm>Server</realm> <args> <arg name="type" type="number" default="1">The type of spots to include.&#xA;&#xA;* 0 = None (Not recommended)&#xA;* 1 = In Cover/basically a hiding spot, in a corner with good hard cover nearby&#xA;* 2 = good sniper spot, had at least one decent sniping corridor&#xA;* 4 = perfect sniper spot, can see either very far, or a large area, or both&#xA;* 8 = exposed, spot in the open, usually on a ledge or cliff, same as GetExposedSpots&#xA;* Values over 255 and below 0 will be clamped.</arg>⤶ <arg name="type" type="number" default="1">The type of spots to include.⤶ * 0 = None (Not recommended)⤶ * 1 = In Cover/basically a hiding spot, in a corner with good hard cover nearby⤶ * 2 = good sniper spot, had at least one decent sniping corridor⤶ * 4 = perfect sniper spot, can see either very far, or a large area, or both⤶ * 8 = exposed, spot in the open, usually on a ledge or cliff, same as GetExposedSpots⤶ * Values over 255 and below 0 will be clamped.</arg>⤶ </args> <rets> <ret name="" type="table">A table of <page>Vector</page>s</ret> </rets> </function>