meapineapple Posted February 24, 2019 I have an actor representing a sign and I'd like to display some text for a short time after the player presses use while looking at the sign. How can I accomplish this with GZDoom? 0 Quote Share this post Link to post
0 meapineapple Posted February 24, 2019 Oh hold up I've answered my own question. In my DECORATE lump: actor Metal_Sign 10360 { Height 32 Radius 32 +SOLID +BUMPSPECIAL +USESPECIAL States { Spawn: SGN0 A -1 Stop } } My SCRIPTS lump: #include "zcommon.acs" script "Sign_Route_101" ENTER { Print(s:"Route 101\nNorth to Mauville"); } script "Sign_Seaside_Cycling" ENTER { Print(s:"Seaside Cycling Road"); } My Thing properties: Works great. Bumping or using the sign Thing displays the message exactly as I was hoping for. 0 Quote Share this post Link to post
0 m8f Posted February 24, 2019 Here is one way to do it: class m8f_hn_Sign : Actor { Default { Health 30; Height 10; Radius 3; +SOLID; +NOBLOOD; +NOTONAUTOMAP; +DONTTHRUST; Tag "Sign"; } States { Spawn: HNWS B -1; Stop; } override bool Used(Actor user) { user.A_Print("Your text"); return true; } } // m8f_hn_Sign This is the simplified sign from one of my mods. This is a working sign mod. You can summon it with summon m8f_hn_sign console command. sign.zip 1 Quote Share this post Link to post
0 meapineapple Posted February 24, 2019 Thanks m8f, this works great except that I haven't worked out how to place a zscript thing in the map using the editor as opposed to summon. 0 Quote Share this post Link to post
0 Gez Posted February 24, 2019 ZScript things are given editor numbers through ZMAPINFO exclusively. 1 Quote Share this post Link to post
0 Dark Pulse Posted February 24, 2019 Since it's clearly Pokemon-inspired, I will be disappointed if the mascot isn't Hissy. 0 Quote Share this post Link to post
0 meapineapple Posted February 25, 2019 16 hours ago, Dark Pulse said: Since it's clearly Pokemon-inspired, I will be disappointed if the mascot isn't Hissy. ......Who? 0 Quote Share this post Link to post
0 Dark Pulse Posted February 25, 2019 6 hours ago, meapineapple said: ......Who? Get out. 0 Quote Share this post Link to post
Question
meapineapple
I have an actor representing a sign and I'd like to display some text for a short time after the player presses use while looking at the sign. How can I accomplish this with GZDoom?
Share this post
Link to post
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.