ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:zdoom

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
functions:zdoom [2016/08/29 11:06] – [ChangeActorFlag] korshunfunctions:zdoom [2016/09/13 17:05] – [ChangeActorFlag] korshun
Line 162: Line 162:
 ''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>
 ==== ChangeActorFlag ==== ==== ChangeActorFlag ====
 ''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>