Triggering a Script by Pushing a Crate?

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
ReX
Posts: 1578
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Triggering a Script by Pushing a Crate?

Post by ReX »

In this Doomworld post a member asked how a specified action can be triggered by moving an object across a linedef (or into a sector). The best I could come up with was to use a usable & pushable model and give the player an inventory item whenever the model was being pushed, and take away the inventory item when it's not being pushed. The script will only be triggered if the player crosses the linedef with the inventory item.

Is there an easier way to do this without DECORATE-type definitions (i.e., ACS only)?
Post Reply

Return to “Scripting”