Difference between revisions of "GetActorType"
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: | ||
This isn't a function, but a work-around to get an actor's "type" | 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> |