Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Levers
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#14
RE: Levers

Debug messages are really helpful to try and determine where the problem is in your script. You turn on debug messages by pressing F1 while in-game if you are in a dev environment (which you really should be - http://wiki.frictionalgames.com/hpl2/amn...evenvguide)

In this example, I simply wrote the command "AddDebugMessage("Door should unlock", false);" which will display the messages "Door should unlock" in the bottom edge of your screen if you have debug messages turned on. If it doesn't show up, it means that something is messed up with either the lever name or the "void Lever_Slaver(string &in asEntity, int alState)" part. If it do show up however, something is wrong with the "
SetSwingDoorLocked("Slaver_Lever_Door", false, true);" part, most probably the same, since the function is ran without problems.
07-27-2011, 10:46 PM
Find


Messages In This Thread
Levers - by Angerpull - 07-27-2011, 08:08 PM
RE: Levers - by Tanshaydar - 07-27-2011, 08:15 PM
RE: Levers - by Angerpull - 07-27-2011, 08:27 PM
RE: Levers - by Tanshaydar - 07-27-2011, 08:32 PM
RE: Levers - by Angerpull - 07-27-2011, 08:44 PM
RE: Levers - by Kyle - 07-27-2011, 08:50 PM
RE: Levers - by Angerpull - 07-27-2011, 08:59 PM
RE: Levers - by Kyle - 07-27-2011, 09:26 PM
RE: Levers - by Angerpull - 07-27-2011, 09:35 PM
RE: Levers - by Kyle - 07-27-2011, 09:50 PM
RE: Levers - by Angerpull - 07-27-2011, 10:02 PM
RE: Levers - by Roenlond - 07-27-2011, 10:14 PM
RE: Levers - by Angerpull - 07-27-2011, 10:41 PM
RE: Levers - by Roenlond - 07-27-2011, 10:46 PM



Users browsing this thread: 1 Guest(s)