Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Need help Text when trying open door
Author Message
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #1
Need help Text when trying open door
hello got a issue with my door , i tryed script a text med open lockeddoor_1 but didnt work Sad anyone have any tip the text didnt show at all Confused

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
01-10-2012 03:58 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flamez3 Offline
Posting Freak

Posts: 1,320
Joined: Apr 2011
Reputation: 57
Post: #2
RE: Need help Text when trying open door
(01-10-2012 03:58 PM)jessehmusic Wrote:  i tryed script a text med open lockeddoor_1 but didnt work Sad
Did not understand that at all, but I think you want locked door to have text saying you need to get something.

I'm assuming this is a level door:

SetLevelDoorLockedText(string& asName, string& asTextCat, string& asTextEntry);
Displays a message when interacting with a locked level door.
asName - internal name
asTextCat - the category in the .lang file
asTextEntry - the entry in the .lang file


If it's not, just use;



SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction);
Calls a function when the player interacts with a certain entity.
Callback syntax: void MyFunc(string &in asEntity)
asName - internal name
asCallback - function to call
abRemoveOnInteraction - determines whether the callback should be removed when the player interacts with the entity
http://wiki.frictionalgames.com/hpl2/amn...ons#player

01-10-2012 04:06 PM
Find all posts by this user Quote this message in a reply
BlueFury Offline
Senior Member

Posts: 487
Joined: May 2011
Reputation: 9
Post: #3
RE: Need help Text when trying open door
I'm sorry but could you use some proper grammar? No offense, i understand that it's not your native language but should it be like this?
Quote: Hello, i have an issue with my door, i tried to script a text med open lockeddoor_1, but it didn't work. Does anyone here have a tip on why the text didn't show at all?

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-10-2012 04:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)