SetLineActivation
From Eternity Wiki
Jump to navigationJump to search
Description
This is an ACS built-in function.
Modifies a line's activation type, if it has a special set: who can activate it, from which side, whether it is repeatable.
Usage
void SetLineActivation(int lineid, int activation[, int repeat])
Parameters
- lineid: ID (tag) of line to modify
- activation: activation type. Can be:
- SPAC_None or 0: disable the activation
- a combination (sum or OR-operation) of the following:
- SPAC_Cross (1): on player crossing
- SPAC_Use (2): on player using from first side
- SPAC_MCross (4): on monster crossing
- SPAC_Impact (8): on player or monster shooting bullets (hitscans) on line
- SPAC_Push (16): on player bumping into line
- SPAC_PCross (32): on projectile crossing line
- SPAC_UseThrough (64): when player uses it from front side + allow 'passthru' effect
- SPAC_AnyCross (128): when any of player, monster, projectile or polyobject crosses it
- SPAC_MUse (256): when monster uses it from front side
- SPAC_MPush (512): when monster bumps into line
- SPAC_UseBack (1024): allow using from back side
- repeat: if greater than 0, then it allows the activation to be repeated. Otherwise, if 0, it removed the "repeatable" attribute.
Return value
Examples
No examples given.
Notes
No particular notes.
This function's identification in zspecial.acs
is: -76.