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
Door problem?(NOOB)
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#9
RE: Door problem?(NOOB)

The FC's Hps can look a little bit wild with a lot of differen scripting stuff, like variables and such.

http://wiki.frictionalgames.com/hpl2/amn..._functions

Use the wiki too! It works!

As soon as you know how scripting works then you will find it easy.

Quick tutorial:

void OnStart()
{
AddUseItemCallback("UnlockDoor", "KEY_NAME", "DOOR_NAME","UseKeyOnDoor", true);
The whole line allows the function to work.

///The red one is the name of the allowing. Usually you don't put anything here. Only if you f.x. want to ///delete a timer.

///The blue one is the name of the function, that happens when you use the item.
}

void UseKeyOnDoor(string &in asItem, string &in asEntity)
///This is the line that specifies that you are using and ITEM on an ENTITY.
{
SetSwingDoorLocked("DOOR_NAME", false, true);
}

Trying is the first step to success.
(This post was last modified: 07-15-2012, 08:10 PM by FlawlessHappiness.)
07-15-2012, 08:09 PM
Find


Messages In This Thread
Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:22 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:34 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:37 PM
RE: Door problem?(NOOB) - by drunkmonk - 07-15-2012, 06:56 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:42 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:46 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:55 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:58 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:09 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:13 PM
RE: Door problem?(NOOB) - by drunkmonk - 07-15-2012, 08:21 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:36 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:37 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:40 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:52 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:56 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 09:07 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 09:11 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 09:23 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 10:29 PM



Users browsing this thread: 7 Guest(s)