Also, providing I have to use the idea I just typed there, is there an ACS command to make an actor change to (and stay in) a specific frame? (Like, the plunger goes down when you use it.)
Can DECORATE things be made "useable"?
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.
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.
Can DECORATE things be made "useable"?
I'm trying to make some interactive things, a la Duke Nukem 3D. For example, a TNT plunger that you can push down to detonate some explosives, or a toilet you can...
Well, you have an imagination. Anyway, other than putting "player presses use" linedefs around the things in question, I'm not sure how to make them usable.
Also, providing I have to use the idea I just typed there, is there an ACS command to make an actor change to (and stay in) a specific frame? (Like, the plunger goes down when you use it.)
Also, providing I have to use the idea I just typed there, is there an ACS command to make an actor change to (and stay in) a specific frame? (Like, the plunger goes down when you use it.)
Re: Can DECORATE things be made "useable"?
Take a look at the [wiki=Actor_flags#Miscellaneous]USESPECIAL flag[/wiki] on the wiki, at the bottom of the Miscellaneous section.
EDIT: Actually, might as well take the explanation further. This flag makes your ACTOR "usable". A player can face the actor and press use to cause it to execute its assigned thing special. If you want the actor itself to also change states, set its special to a script that uses SetActorState to cause it to animate or whatever. So, your plunger actor might have 2 states: "Spawn", which it starts in and shows the plunger up, and then "Used" (or whatever you want to call it), which it is set to via the script and it animates the plunger going down and staying there.
EDIT: Actually, might as well take the explanation further. This flag makes your ACTOR "usable". A player can face the actor and press use to cause it to execute its assigned thing special. If you want the actor itself to also change states, set its special to a script that uses SetActorState to cause it to animate or whatever. So, your plunger actor might have 2 states: "Spawn", which it starts in and shows the plunger up, and then "Used" (or whatever you want to call it), which it is set to via the script and it animates the plunger going down and staying there.
Re: Can DECORATE things be made "useable"?
Sure it's possible.Ceeb wrote:For example, a TNT plunger that you can push down to detonate some explosives...
http://www.zshare.net/video/18315129429c9570/
