ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:changeflag

Table of Contents

ChangeFlag

void ChangeFlag(str name, bool value)

Description

Enables or disables the specified actor flag of the activator. Zandronum equivalent of SetActorFlag. Also see ChangeActorFlag.

It works by giving an item that calls A_ChangeFlag.

To use this function, you must add decorate/changeflag.txt from ACSUtils to your mod.

Examples

ChangeFlag("SOLID", true);
ChangeFlag("SHOOTABLE", false);
functions/changeflag.txt · Last modified: 2017/07/15 15:04 by korshun