mirror of
https://github.com/icewind1991/sm-sourcenav.git
synced 2026-06-03 09:04:12 +02:00
readme
This commit is contained in:
parent
c9a71e3911
commit
44d05edb2a
1 changed files with 15 additions and 0 deletions
15
README.md
Normal file
15
README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# sm-sourcenav
|
||||||
|
|
||||||
|
Sourcemod extension for parsing .nav files
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Get the z-height at an x/y point
|
||||||
|
|
||||||
|
```sourcepawn
|
||||||
|
#include <sourcenav>
|
||||||
|
|
||||||
|
new SourceNav:sourceNav = new SourceNav("path/to/nav.nav");
|
||||||
|
float z = sourceNav.query(x, y, z_guess); // z_guess is used when there are multiple possible heights
|
||||||
|
```
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue