setHasSight: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=setHasSight
|name=setHasSight
|version=1.3b48
|description=
|description=
Sets if the [[Token:Current Token|Current Token]] has [[Token:Sight|Sight]] or not. If the argument is 0 the [[Token:Current Token|Current Token]] does not have [[Token:Sight|Sight]] if it is non zero then it does.
Sets if the [[Token:Current Token|Current Token]] has [[Token:Sight|Sight]] or not. If the argument is 0 the [[Token:Current Token|Current Token]] does not have [[Token:Sight|Sight]] if it is non zero then it does.
Line 8: Line 9:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: setHasSight(val)]
setHasSight(val)
</source>
</source>
}}
}}
[[Category:Sight Function]]
[[Category:Sight Function]]

Revision as of 12:34, 10 March 2009

setHasSight() Function

Introduced in version 1.3b48
Sets if the Current Token has Sight or not. If the argument is 0 the Current Token does not have Sight if it is non zero then it does. You can not set the Sight of a NPC Token.

Usage

setHasSight(val)