ACS not executing Correctly

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
Brendini
Posts: 6
Joined: Thu Aug 16, 2018 11:16 am

ACS not executing Correctly

Post by Brendini »

So, When walking over a linedef to execute a script, The Teleport does'nt execute, But when walking over it again it teleports the player.
This also happens with another instance where I have a custom camera, And when walking over a Linedef it doesn't execute the camera till I walk over it again.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: ACS not executing Correctly

Post by wildweasel »

You haven't really told us enough to be able to help you. Can you post your map?
Brendini
Posts: 6
Joined: Thu Aug 16, 2018 11:16 am

Re: ACS not executing Correctly

Post by Brendini »

Brendini
Posts: 6
Joined: Thu Aug 16, 2018 11:16 am

Re: ACS not executing Correctly

Post by Brendini »

I fixed the problem! I just flipped the Linedef and it worked
User avatar
Enjay
 
 
Posts: 27070
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: ACS not executing Correctly

Post by Enjay »

Yup, teleports in scripts work like teleport lines in a map. You have to cross them front to back to for the teleport instruction in the script to work (the rest of the script is likely to work even if you cross the other way though). I know it seems a bit weird but teleports need to work that way to allow you to be able to get off teleport pads surrounded by teleport lines (or scripts with teleports) without teleporting away again.
Post Reply

Return to “Scripting”