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
names problem
Author Message
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #1
names problem
I can't get the finger on how to fix names for doors etc. Like when a door is locked, what's the code for that? and if you succesfully force opens a door, what's the code for that?. Like that kind of stuff :O. Any ideas?

[Image: 44917299.jpg]Dubstep <3
06-20-2011 12:59 AM
Find all posts by this user Quote this message in a reply
DamnNoHtml Offline
Senior Member

Posts: 386
Joined: Sep 2010
Reputation: 11
Post: #2
RE: names problem
I don't really understand what you're asking...Names or doors?

Creator of Wake, Through the Portal, and Insomnia
06-20-2011 03:13 AM
Find all posts by this user Quote this message in a reply
TFEF Offline
Member

Posts: 144
Joined: Feb 2011
Reputation: 1
Post: #3
RE: names problem
I believe he's asking about script functions.

Locked doors are set in the Level Editor, somewhere in the entity properties I think.

As for your other question, no idea on how to answer that.
06-20-2011 07:04 AM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #4
RE: names problem
you know some of the doors say "it wont budge" how to fix that?

[Image: 44917299.jpg]Dubstep <3
06-22-2011 02:24 PM
Find all posts by this user Quote this message in a reply
laser50 Offline
Member

Posts: 243
Joined: Apr 2011
Reputation: 0
Post: #5
RE: names problem
(06-22-2011 02:24 PM)xtron Wrote:  you know some of the doors say "it wont budge" how to fix that?

That can't be fixed as it is a Script?

Current Project: [WIP] Lost Memories
Progress: 15%
CLICK FOR MY MODDB PAGE
06-22-2011 02:32 PM
Find all posts by this user Quote this message in a reply
WatzUpzPeepz Offline
Member

Posts: 106
Joined: May 2011
Reputation: 0
Post: #6
RE: names problem
(06-22-2011 02:24 PM)xtron Wrote:  you know some of the doors say "it wont budge" how to fix that?

Spoiler below!
voidOnStart()
{
SetEntityPlayerInteractCallback("doorname", "name", true);
}

void name(string &in asEntity)
{
if(GetSwingDoorLocked("doorname")== true)
SetMessage("langcat", "nameofentry", 5.0f);
}


06-22-2011 07:33 PM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #7
RE: names problem
where to write the entry? *cute eyes*

[Image: 44917299.jpg]Dubstep <3
06-22-2011 09:45 PM
Find all posts by this user Quote this message in a reply
WatzUpzPeepz Offline
Member

Posts: 106
Joined: May 2011
Reputation: 0
Post: #8
RE: names problem
(06-22-2011 09:45 PM)xtron Wrote:  where to write the entry? *cute eyes*

Spoiler below!
CATEGORY Name="langcat">
<Entry Name="nameofentry">It wont budge.</Entry>
</CATEGORY>


You can name the catergory whatever you want unlike with journals and things.

06-22-2011 09:49 PM
Find all posts by this user Quote this message in a reply
rojkish Offline
Junior Member

Posts: 45
Joined: Jun 2011
Reputation: 0
Post: #9
RE: names problem
(06-22-2011 09:45 PM)xtron Wrote:  where to write the entry? *cute eyes*

You put the entry and the language category in the extra_english.lang file.

Example:

Spoiler below!

voidOnStart()
{
SetEntityPlayerInteractCallback("mansion_1", "Message", true);
//When the player interacts with the door "mansion_1", the function "Message" happens
}

void Message(string &in asEntity)
{
SetMessage("Doors", "mansion_1", 5.0f);
//The language category is "Doors" and the entry is "mansion_1"
}

in the extra_english file you write;

<CATEGORY Name="Doors">
<Entry Name="mansion_1">It won't budge.</Entry>
</CATEGORY>


06-23-2011 01:37 AM
Find all posts by this user Quote this message in a reply
xtron Offline
Senior Member

Posts: 402
Joined: May 2011
Reputation: 2
Post: #10
RE: names problem
Oh ok thanks Big Grin

Is it possible to make a repeat, if you interact with the door again the same text appears?.

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-24-2011 02:02 PM by xtron.)
06-24-2011 01:08 PM
Find all posts by this user Quote this message in a reply
Post Reply 




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