Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pop up titles
Hungerzz Offline
Junior Member

Posts: 10
Threads: 2
Joined: Mar 2014
Reputation: 0
#1
Pop up titles

I want to make a title saying ,,Locked,, when i click on locked doors.Anyone?
03-25-2014, 04:32 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Pop up titles

Go to the entity tab of the door (in the level editor) and type a function name in the PlayerInteractCallback box.

Jump over to your script and create the script for it. I'll name it InteractLocked in this example:
PHP Code: (Select All)
void InteractLocked(string &in asEntity)
{
    if(
GetSwingDoorLocked(asEntity) == trueSetMessage("MessageCategory""MessageEntry"3);


This simple script will check if the door is locked, and if so, it will display a message for 3 seconds. The message itself is written in your .lang file. Just create a category and entry and input the names of those in the SetMessage function.

PS: Make sure the box for removing the callback is unchecked in the editor.

(This post was last modified: 03-25-2014, 04:44 PM by Mudbill.)
03-25-2014, 04:43 PM
Find
Hungerzz Offline
Junior Member

Posts: 10
Threads: 2
Joined: Mar 2014
Reputation: 0
#3
RE: Pop up titles

Hey it's you,Mudbill hahaha.
I watch your videos Big Grin
Ty Tongue

Wait,what do i type in .lang file?
(This post was last modified: 03-25-2014, 04:58 PM by Hungerzz.)
03-25-2014, 04:46 PM
Find
Traggey Offline
is mildly amused

Posts: 3,257
Threads: 74
Joined: Feb 2012
Reputation: 185
#4
RE: Pop up titles

This does not belong here, moved to development support.
03-25-2014, 07:00 PM
Find




Users browsing this thread: 1 Guest(s)