Can DECORATE things be made "useable"?

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
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Can DECORATE things be made "useable"?

Post by Ceeb »

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... :roll: 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.)
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Can DECORATE things be made "useable"?

Post by Zippy »

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.
User avatar
Enjay
 
 
Posts: 27341
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Can DECORATE things be made "useable"?

Post by Enjay »

Ceeb wrote:For example, a TNT plunger that you can push down to detonate some explosives...
Sure it's possible. ;)

http://www.zshare.net/video/18315129429c9570/
Locked

Return to “Editing (Archive)”