Floor MoveToValue: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
68:'''Floor_MoveToValueTimes8'''(''tag'', ''speed'', ''height'', ''negative'', ''change'')
68:'''Floor_MoveToValueTimes8'''(''tag'', ''speed'', ''height'', ''negative'', ''change'')


Moves tagged floors to a given absolute ''height'' value. ''Speed'' is number of eights of map units per tic (8 is the traditional Doom floor speed). If ''negative'' is 1, the -''height'' destination will be targeted instead. ''Change'' specifies whether to change floor texture and/or effect.
Moves tagged floors to a given absolute ''height'' value. ''Speed'' is number of eights of map units per tic (8 is the traditional Doom floor speed). If ''negative'' is 1, the -''height'' destination will be targeted instead.
 
''Change'' specifies whether to change floor texture and/or effect:
*0: no change
*1: trigger model, reset special
*2: numeric model, reset special
*3: trigger model, change texture only
*4: numeric model, change texture only
*5: trigger model, change texture and special
*6: numeric model, change texture and special


'''Floor_MoveToValueTimes8''' is like '''Floor_MoveToValue''' except that the destination is actually ± ''height'' x 8. Both this special and the ''negative'' parameter are artifacts of the Hexen map format, used mainly by ZDoom when it introduced or extended these specials. Under [[UDMF]], [[ACS]] or [[ExtraData]] you won't need to use either the ''negative'' parameter or the '''Times8''' special.
'''Floor_MoveToValueTimes8''' is like '''Floor_MoveToValue''' except that the destination is actually ± ''height'' x 8. Both this special and the ''negative'' parameter are artifacts of the Hexen map format, used mainly by ZDoom when it introduced or extended these specials. Under [[UDMF]], [[ACS]] or [[ExtraData]] you won't need to use either the ''negative'' parameter or the '''Times8''' special.

Revision as of 02:13, 7 August 2019

37:Floor_MoveToValue(tag, speed, height, negative, change)

68:Floor_MoveToValueTimes8(tag, speed, height, negative, change)

Moves tagged floors to a given absolute height value. Speed is number of eights of map units per tic (8 is the traditional Doom floor speed). If negative is 1, the -height destination will be targeted instead.

Change specifies whether to change floor texture and/or effect:

  • 0: no change
  • 1: trigger model, reset special
  • 2: numeric model, reset special
  • 3: trigger model, change texture only
  • 4: numeric model, change texture only
  • 5: trigger model, change texture and special
  • 6: numeric model, change texture and special

Floor_MoveToValueTimes8 is like Floor_MoveToValue except that the destination is actually ± height x 8. Both this special and the negative parameter are artifacts of the Hexen map format, used mainly by ZDoom when it introduced or extended these specials. Under UDMF, ACS or ExtraData you won't need to use either the negative parameter or the Times8 special.

See also