CheckActorFloorTexture: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{ACSFunction|description=Checks if the tagged thing is on a floor with the given texture. |usage=''boolean'' '''CheckActorFloorTexture'''(''int tid'', ''str texture'') |param...")
 
(No difference)

Latest revision as of 02:03, 21 September 2022

Description[edit]

This is an ACS built-in function.

Checks if the tagged thing is on a floor with the given texture.

Usage[edit]

boolean CheckActorFloorTexture(int tid, str texture)

Parameters[edit]

  • tid: TID of thing to check
  • texture: name of floor texture to check

Return value[edit]

TRUE if the floor texture of the sector the thing is in matches texture

Examples[edit]

int activatorOnBloodyRocks = CheckActorFloorTexture(0, "FLOOR6_1");

Notes[edit]

The checked sector is the one on which the center point of the thing stays. If a gravity-bound thing is resting on a side step but its center point is above another sector, it's this latter sector which will be checked, not the step sector.

This function's identification in zspecial.acs is: (ACC internal).

See also[edit]