Getflorzofslope: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
New page: getflorzofslope <sectnum> <x> <y> <return> Returns the z coordinate of the floor at the coordinates <x> and <y>. If the sector doesn't have a floor slope then it immediately r...
 
One (talk | contribs)
No edit summary
Line 1: Line 1:
getflorzofslope <[[sectnum]]> <[[x]]> <[[y]]> <return>
'''getflorzofslope''' <[[sectnum]]> <[[x]]> <[[y]]> <return>


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

Revision as of 12:28, 4 May 2009

getflorzofslope <sectnum> <x> <y> <return>

Returns the z coordinate of the floor at the coordinates <x> and <y>. If the sector doesn't have a floor slope then it immediately returns the sector's floorz so it's not that slow. You may want to check for slopes yourself with floorstat 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
getflorzofslope temp x y temp2