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

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#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
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#2
RE: names problem

I don't really understand what you're asking...Names or doors?

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
06-20-2011, 03:13 AM
Find
TFEF Offline
Member

Posts: 143
Threads: 0
Joined: Feb 2011
Reputation: 1
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#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
laser50 Offline
Member

Posts: 242
Threads: 22
Joined: Apr 2011
Reputation: 0
#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
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#7
RE: names problem

where to write the entry? *cute eyes*

[Image: 44917299.jpg]Dubstep <3
06-22-2011, 09:45 PM
Find
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#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
rojkish Offline
Junior Member

Posts: 45
Threads: 0
Joined: Jun 2011
Reputation: 0
#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
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#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




Users browsing this thread: 4 Guest(s)