Editing
SetActorProperty
(section)
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==ACS function== :'''SetActorProperty'''(''tid'', ''property'', ''value'') :'''GetActorProperty'''(''tid'', ''property'') :'''CheckActorProperty'''(''tid'', ''property'', ''value'') These functions access a property for actors tagged ''tid''. ''Property'' is one of the constants starting with APROP_. ''Value'' can be expressed into a form supported by the given property type. See the following table. Use '''SetActorProperty''' to set a property (not all are writable and will be marked in the table). Use '''GetActorProperty''' to return a property's value. You can also use '''CheckActorProperty''' to check equality of a property with a given value. {|class="wikitable sortable" ! Property ! Type ! Notes ! Description |- || APROP_Health || int || || current thing health |- || APROP_Speed || int/float || read-only || thing speed, commonly expressed in int for monsters or in float for projectiles |- || APROP_Damage || int || || thing damage - usually projectile or lost soul impact damage |- || APROP_Alpha || float || || thing opacity, expressed between 0.0 and 1.0 |- || APROP_Ambush || bool || || whether the thing has the '''AMBUSH''' flag, i.e. reacts to gunshots |- || APROP_Invulnerable || bool || || whether the thing has the '''INVULNERABLE''' flag |- || APROP_Friendly || bool || || whether the thing has the '''FRIEND''' flag |- || APROP_SpawnHealth || int || read-only || thing initial health at spawn time, usually its maximum |- || APROP_Dropped || bool || || whether the thing has the '''DROPPED''' flag. Ammo dropped from monsters has this flag. |- || APROP_TargetTID || int || || TID of thing's target (or projectile's spawner), or 0 if no target |- || APROP_TracerTID || int || || TID of seeker missile's target (0 if none) |- || APROP_ScaleX || float || || X scale of sprite |- || APROP_ScaleY || float || || Y scale of sprite |- || APROP_Dormant || bool || || whether thing has the '''DORMANT''' flag |- || APROP_Counter0, up to<br>APROP_Counter7 || int || || thing [[counter]] value |} ===See also=== *[[GetActorVelX]] *[[ACS functions]] [[Category:ACS]]
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information