Getceilzofslope: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
mNo edit summary
 
Line 3: Line 3:
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.
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]]).
For the most accurate usage, use it in conjunction with [[updatesector]] (not [[updatesectorz]]).  Also see [[getflorzofslope]].


  getactor[THISACTOR].x x
  getactor[THISACTOR].x x

Latest revision as of 02:58, 14 July 2009

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). Also see getflorzofslope.

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