id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Scripting => Topic started by: bitterman on January 13, 2018, 11:41:39 PM

Title: Player's interactions with objects via keys
Post by: bitterman 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.
Title: Re: Player's interactions with objects via keys
Post by: bitterman on January 17, 2018, 07:15:08 AM
In fact this is like multiple trigger with target_tip. Not sure about keys yet.
Title: Re: Player's interactions with objects via keys
Post by: bitterman on January 18, 2018, 11:41:58 AM
Another way (looks like system font is fixed and can't be changed via script).
Title: Re: Player's interactions with objects via keys
Post by: bitterman 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...
Title: Re: Player's interactions with objects via keys
Post by: bitterman on January 28, 2018, 08:57:19 AM
http://idtechforums.fuzzylogicinc.com/index.php?topic=628.msg6550#msg6550