Difference between revisions of "GetActorType"

106 bytes added ,  12:02, 25 October 2006
formatting, fixing category links
imported>GBHis
imported>Scruggs
(formatting, fixing category links)
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". Created by [[User:GBHis|GBHis]].
 
<pre>
<pre>
getactortype = GetIsCreature+(getisghost *3)+(getvampire *4)+IsActor+(isessential *9)</pre>
short GetActorType
set GetActorType to GetIsCreature+(getIsGhost *3)+(getVampire *4)+IsActor+(isEssential *9)</pre>


Here goes the values returned:
This returns the following values:
<pre>
<pre>
0 - Not an Actor
0 - Not an Actor
Line 19: Line 21:
18 - Essential NPC Ghost AND Vampire</pre>
18 - Essential NPC Ghost AND Vampire</pre>


I'm not fantastic at WIKI formatting, but I tried :)
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."
 
Main article by --[[User:GBHis|GBHis]] 11:31, 25 October 2006 (EDT)
Suggestions go below (or in the TALK page):




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