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
What would be the script for this?
Knittel Offline
Junior Member

Posts: 8
Threads: 1
Joined: Apr 2012
Reputation: 0
#3
RE: What would be the script for this?

Tutorial for exactly what you need:
http://wiki.frictionalgames.com/hpl2/tut...cked_doors
Add in the script the following line:
void DoorLockedPlayer(string &in entity)
{
    if(GetSwingDoorLocked("EXAMPLE_DOOR") == true)
    {  if (HasItem("KEYNAME") == true) SetMessage("Messages", "msgnameA", 0);  else  SetMessage("Messages", "msgnameB", 0);
    }
}
And BTW, here is a complete Tutorial for Scripting etc. (in English)
http://www.frictionalgames.com/forum/thread-10798.html
Here would be a complete Tutorial (in German) for the complete editor instead of only scripting but not that extensive as the other tutorial:
http://www.youtube.com/watch?v=_sHYeUJ93...plpp_video

[Image: 2ZwH0ZGD0AwL2.png]
[TRACKMANIA]


04-28-2012, 07:18 AM
Find


Messages In This Thread
RE: What would be the script for this? - by Knittel - 04-28-2012, 07:18 AM



Users browsing this thread: 1 Guest(s)