Difference between revisions of "GetActorType"

40 bytes removed ,  20:04, 23 June 2012
Byline removed
imported>Haama
(No point for a global - this is called on self, not on any creature)
imported>QQuix
(Byline removed)
 
(One intermediate revision by one other user 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>
Anonymous user