Getflorzofslope: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
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. | ||
For the most accurate usage, use it in conjunction with [[updatesector]] | For the most accurate usage, use it in conjunction with [[updatesector]] or [[updatesectorz]]. | ||
getactor[THISACTOR].x x | getactor[THISACTOR].x x | ||
getactor[THISACTOR].y y | getactor[THISACTOR].y y | ||
getactor[THISACTOR].z z | |||
updatesectorz x y z temp | |||
getflorzofslope temp x y temp2 | getflorzofslope temp x y temp2 | ||
[[Category:EDuke32 specific commands]] | [[Category:EDuke32 specific commands]] | ||
[[Category:Sector manipulation]] | [[Category:Sector manipulation]] |
Latest revision as of 13:57, 26 February 2011
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 or updatesectorz.
getactor[THISACTOR].x x getactor[THISACTOR].y y getactor[THISACTOR].z z updatesectorz x y z temp getflorzofslope temp x y temp2