Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
functions:zdoom [2016/08/29 11:06] – [ChangeFlag] korshun | functions:zdoom [2016/09/13 17:05] – [ChangeActorFlag] korshun |
---|
''void ChangeFlag(str flagname, bool value)'' | ''void ChangeFlag(str flagname, bool value)'' |
| |
Adds or removes a flag from the activator. | Adds or removes a flag from the activator. This is a Zandronum replacement for [[zdoom>SetActorFlag]]. |
| |
| **Example** |
| <code> |
| ChangeFlag("SHOOTABLE", false); |
| </code> |
| |
<note>To use this function, you need to add ''decorate/changeflag.txt'' to your decorate.</note> | <note>To use this function, you need to add ''decorate/changeflag.txt'' to your decorate.</note> |
''void ChangeActorFlag(int tid, str flagname, bool value)'' | ''void ChangeActorFlag(int tid, str flagname, bool value)'' |
| |
Adds or removes a flag from the specified actor. | Adds or removes a flag from the specified actor. This is a Zandronum replacement for [[zdoom>SetActorFlag]]. |
| |
| **Example** |
| |
| <code> |
| ChangeActorFlag(tid, "SHOOTABLE", false); |
| </code> |
| |
<note>To use this function, you need to add ''decorate/changeflag.txt'' to your decorate.</note> | <note>To use this function, you need to add ''decorate/changeflag.txt'' to your decorate.</note> |