Author Topic: Player's interactions with objects via keys  (Read 259 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Player's interactions with objects via keys
« on: January 13, 2018, 11:41:39 PM »
I'm looking for how to implement this thing:

When player stay close to spec. entity then scripn send to HUD some message like "Use E" or "Destroy D".

Then player can press some key to interact with this entity.

Don't remember this feature in D3.

Thanks.
« Last Edit: January 13, 2018, 11:44:00 PM by bitterman »

bitterman

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Player's interactions with objects via keys
« Reply #1 on: January 17, 2018, 07:15:08 AM »
In fact this is like multiple trigger with target_tip. Not sure about keys yet.

bitterman

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Player's interactions with objects via keys
« Reply #2 on: January 18, 2018, 11:41:58 AM »
Another way (looks like system font is fixed and can't be changed via script).
« Last Edit: January 18, 2018, 11:43:35 AM by bitterman »

bitterman

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: Player's interactions with objects via keys
« Reply #3 on: January 21, 2018, 06:29:39 AM »
On-trigger gui on the top of interacted item is a best idea IMO.

Is there a way to make gui surf always to stay in player's view?
(like 'deform sprite' for material but I can't find how to assign mtr to gui).

*********** upd ************

It's works fine on func_static with decal mtr and show/hide by trigger/script (right quad).
On func_static with gui the 'deform sprite' k/v works odd (left quad).

Not so flexible as gui (font type, align etc) but works as planned.

Now about key handle...
« Last Edit: January 21, 2018, 08:25:40 AM by bitterman »

bitterman

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-5
  • Doom Newbie
    • View Profile