GetActorPitch wont work

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
peoplethought
Posts: 160
Joined: Mon Aug 25, 2008 3:38 am

GetActorPitch wont work

Post by peoplethought »

This doesn't work for me. I try to use it in the script and it doesn't even turn blue after I type it.

"Identifier has not been declared."

Any reason why this might happen?
User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Re: GetActorPitch wont work

Post by Giest118 »

Where's your script?

We need it. Like, a lot.
User avatar
peoplethought
Posts: 160
Joined: Mon Aug 25, 2008 3:38 am

Re: GetActorPitch wont work

Post by peoplethought »

I don't have a script. I would if I could get this to work. What I mean is that when I type the word in, regardless of what my script is doing, it doesn't recognize the word as a function. Am I missing a file I need to use this command?

It just says it's an undeclared identifier.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: GetActorPitch wont work

Post by Project Shadowcat »

Post your ACS (Action Code Script)

It would also help to update your copy of ACC.
User avatar
Kappes Buur
 
 
Posts: 4191
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: GetActorPitch wont work

Post by Kappes Buur »

peoplethought wrote:I don't have a script. I would if I could get this to work. What I mean is that when I type the word in, regardless of what my script is doing, it doesn't recognize the word as a function...
That is not logical. :D
peoplethought wrote:"Identifier has not been declared."
Something like this, perhaps:

Code: Select all

int pitch = getactorpitch(0); // a tid of 0 refers to the activator
User avatar
peoplethought
Posts: 160
Joined: Mon Aug 25, 2008 3:38 am

Re: GetActorPitch wont work

Post by peoplethought »

Nevermind, it seems to be working now.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: GetActorPitch wont work

Post by HotWax »

From his post, it sounded like he wasn't getting the syntax highlighting he expected in DoomBuilder. There was no script because he hadn't compiled one yet.

@OP: For future reference, DoomBuilder only provides a shell for ACS. If it doesn't understand a function, that doesn't mean the function doesn't exists, and it's up to ACC to make the final call when you hit the compile button. As long as your ACC is up to date, you should be ok even if DoomBuilder doesn't recognized a command.
User avatar
Enjay
 
 
Posts: 27165
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: GetActorPitch wont work

Post by Enjay »

And just to double check, the latest ACC can be downloaded from the downloads page
http://zdoom.org/Download

And Nash has put up a build of the most recent SVN version if you want to try that
http://nash.wanzafran.com/doomstuff/svn/
Locked

Return to “Editing (Archive)”