Getceilzofslope

From EDukeWiki
Revision as of 15:48, 7 July 2007 by Hendricks266 (talk | contribs) (New page: getceilzofslope <sectnum> <x> <y> <return> Returns the z coordinate of the ceiling at the coordinates <x> and <y>. If the sector doesn't have a ceiling slope then it immediate...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getceilzofslope <sectnum> <x> <y> <return>

Returns the z coordinate of the ceiling at the coordinates <x> and <y>. If the sector doesn't have a ceiling slope then it immediately returns the sector's ceilingz so it's not that slow. You may want to check for slopes yourself with ceilingstat if you think the overhead of calling this function is too slow.

For the most accurate usage, use it in conjunction with updatesector (not updatesectorz).

getactor[THISACTOR].x x
getactor[THISACTOR].y y
updatesector x y temp
getceilzofslope temp x y temp2