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
I REALLY NEED HELP!!!
JarrodTheBobo Offline
Member

Posts: 63
Threads: 2
Joined: Jan 2011
Reputation: 3
#1
I REALLY NEED HELP!!!

HEllo im new to scripting and all that jazz, and i cant find anything to help me with this.

I have a default script for a story im making and i want to add a command to make a key open a door. i found a goood one but i dont know where to put it! do i put it in the default script file? and if i do where! i tried putting it in the default script file and it didnt do anything! none of the tutorials are helping! they dont tell you where to put stuff! im so fusterated!
01-12-2011, 09:18 PM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#2
RE: I REALLY NEED HELP!!!

Hmm, Déjà-vue. Smile

I suggest you start by (slowly) reading this: http://wiki.frictionalgames.com/hpl2/tut...y_tutorial
01-12-2011, 09:23 PM
Find
JarrodTheBobo Offline
Member

Posts: 63
Threads: 2
Joined: Jan 2011
Reputation: 3
#3
RE: I REALLY NEED HELP!!!

(01-12-2011, 09:23 PM)Tottel Wrote: Hmm, Déjà-vue. Smile

I suggest you start by (slowly) reading this: http://wiki.frictionalgames.com/hpl2/tut...y_tutorial

didnt help me...at all. and now i have another problem! when i go to play my custom map, when i go in i cant turn, it has a bunch of writing about fps, materials, and other junk and the walls have white lines like framework on them. i also cant press f1 to bring up the debug menu....what did i do wrong? can someone please help me?
01-13-2011, 01:42 AM
Find
Tottel Offline
Senior Member

Posts: 307
Threads: 9
Joined: Nov 2010
Reputation: 0
#4
RE: I REALLY NEED HELP!!!

I had the exact same thing (which no one else seems to have). Load your custom map, press escape and change profile. Now return to game and press f1.
01-13-2011, 02:20 AM
Find
JarrodTheBobo Offline
Member

Posts: 63
Threads: 2
Joined: Jan 2011
Reputation: 3
#5
RE: I REALLY NEED HELP!!!

(01-13-2011, 02:20 AM)Tottel Wrote: I had the exact same thing (which no one else seems to have). Load your custom map, press escape and change profile. Now return to game and press f1.

worked XD thanks i love you.!

NOW I HAVE A NEW PROBLEM!!!

Im trying to get a door to open with a key, but i wont...here is my script

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1" "UsedKeyOnDoor", true);

}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0.0f, false);
RemoveItem("key_1");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

do i need to do something to the door in the map editor? i only have it set as locked and havnt played with the other stuff....

btw my door in games is named door_1 and the key is key_1

can someone please help me? im going to kill someone!
bump guys i really need help!!!
(This post was last modified: 01-13-2011, 03:16 AM by JarrodTheBobo.)
01-13-2011, 02:30 AM
Find
Frontcannon Offline
Senior Member

Posts: 538
Threads: 10
Joined: Jul 2010
Reputation: 2
#6
RE: I REALLY NEED HELP!!!

Add this to UsedKeyOnDoor:

AddDebugMessage("function is called", false);

Then activate 'Show debug messages' in the debug menu. Does it show when you use the key on the door?


╔═════════════════╗
☺ Smoke weed everyday ☺
╚═════════════════╝
01-13-2011, 02:50 PM
Find




Users browsing this thread: 3 Guest(s)