Question about SetActorProperty in ACS

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Evil Operative
Posts: 61
Joined: Sat Mar 21, 2015 10:44 pm

Question about SetActorProperty in ACS

Post by Evil Operative »

Recently I discovered that you can change different properties in an actor by putting in different numbers, for example

Code: Select all

SetActorProperty(0, 39, 104);
this will set the calling actor's viewheight to 104, and this one

Code: Select all

SetActorProperty(0, 15, 100);
sets the calling actor's gravity to 100

I'm trying to find out the number for every single property listed in this link: https://zdoom.org/wiki/Actor_properties and I'm just curious as to whether someone else has already documented this elsewhere.
User avatar
KeksDose
 
 
Posts: 596
Joined: Thu Jul 05, 2007 6:13 pm
Location: my laboratory
Contact:

Re: Question about SetActorProperty in ACS

Post by KeksDose »

You may use the nice identifiers found here. In your acc directory, open zdefs.acs, and you can see their corresponding numbers.
User avatar
Evil Operative
Posts: 61
Joined: Sat Mar 21, 2015 10:44 pm

Re: Question about SetActorProperty in ACS

Post by Evil Operative »

Truly exemplar. Thank you very much.

Although I don't see the numbers for MaxStepHeight and MaxDropOffHeight. What's up with that?

Edit: Nevermind, I was just using an older version of ACC
Post Reply

Return to “Scripting”