Difference between revisions of "GetActorType"

39 bytes removed ,  20:04, 23 June 2012
Byline removed
imported>Morerunes
(remove Prod, can be useful, and provides a template)
imported>QQuix
(Byline removed)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Byline}}


This isn't a function, but a work-around to get an actor's "type". Created by [[User:GBHis|GBHis]].
This isn't a function, but a work-around to get an actor's "type".  


<pre>
<pre>
short GAT ; GetActorType
short GAT ; GetActorType
set GAT to (GetIsCreature *8)+(getIsGhost)+(getVampire)+IsActor+(isEssential *4)-1</pre>
set GAT to (GetIsCreature *8)+(getIsGhost)+(getVampire *2)+IsActor+(isEssential *4)-1</pre>
This returns the following values:
This returns the following values:
<pre>
<pre>
Line 23: Line 22:
</pre>
</pre>


Note that "Ghost" refers to creatures and NPCs who are affected by the [[SetGhost]] function. Ordinarily, a creature like a wraith will return 2 for "Creature", not "Creature Ghost."
Note that "Ghost" refers to creatures and NPCs who are affected by the [[SetGhost]] function. Ordinarily, a creature like a wraith will return 2 for "Creature", not "Creature Ghost."  




[[Category:Solutions]]
[[Category:Solutions]]
[[Category:Useful_Code]]
[[Category:Useful_Code]]
Anonymous user