Solved changeentityproperty(self, "candamage", ?????);

Question that is answered or resolved.
Solution
Any type constant.

EX:

C:
changeentityproperty(target_entity, "candamage", openborconstant("TYPE_PLAYER"));

Types are bitwise, so you can combine them for multiple types with the pipe character, like this:

C:
changeentityproperty(target_entity, "candamage", openborconstant("TYPE_SHOT")|openborconstant("TYPE_ENEMY"));

Here are all the types in 4.0. There may be types that don't work in 3.0, but the majority of them will:
C:
/* Model/Entity types. */
        ICMPCONST(TYPE_ANY)
        ICMPCONST(TYPE_ENDLEVEL)
        ICMPCONST(TYPE_ENEMY)
        ICMPCONST(TYPE_ITEM)
        ICMPCONST(TYPE_NO_COPY)
        ICMPCONST(TYPE_NONE)
        ICMPCONST(TYPE_NPC)
        ICMPCONST(TYPE_OBSTACLE)
        ICMPCONST(TYPE_PANEL)...
Any type constant.

EX:

C:
changeentityproperty(target_entity, "candamage", openborconstant("TYPE_PLAYER"));

Types are bitwise, so you can combine them for multiple types with the pipe character, like this:

C:
changeentityproperty(target_entity, "candamage", openborconstant("TYPE_SHOT")|openborconstant("TYPE_ENEMY"));

Here are all the types in 4.0. There may be types that don't work in 3.0, but the majority of them will:
C:
/* Model/Entity types. */
        ICMPCONST(TYPE_ANY)
        ICMPCONST(TYPE_ENDLEVEL)
        ICMPCONST(TYPE_ENEMY)
        ICMPCONST(TYPE_ITEM)
        ICMPCONST(TYPE_NO_COPY)
        ICMPCONST(TYPE_NONE)
        ICMPCONST(TYPE_NPC)
        ICMPCONST(TYPE_OBSTACLE)
        ICMPCONST(TYPE_PANEL)
        ICMPCONST(TYPE_PLAYER)
        ICMPCONST(TYPE_PROJECTILE)
        ICMPCONST(TYPE_RESERVED)
        ICMPCONST(TYPE_SHOT)
        ICMPCONST(TYPE_STEAMER)
        ICMPCONST(TYPE_TEXTBOX)
        ICMPCONST(TYPE_TRAP)
        ICMPCONST(TYPE_UNKNOWN)
 
Solution
Back
Top Bottom