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 messages and noises and memos in scripting?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Door messages and noises and memos in scripting?

(10-17-2011, 11:04 PM)MissMarilynn Wrote: Could you be a bit more detailed and give a scripted example of 1 and 2 and 3?

Example for 1 and 3:

PHP Code: (Select All)
void OnStart()
{
     
SetEntityPlayerInteractCallback("door_name""IsItLocked"false);
}

void IsItLocked(string &in entity)
{
     if (
GetSwingDoorLocked(entity)
     && 
entity == "door_name")
     {
          
SetMessage("cat_name""entry_name"0);
          
// Category name: "Journal"; Entry name: "Quest_open_door_Text"
          
AddQuest("open_door_quest""open_door");
     }


Example for 2:

PHP Code: (Select All)
PlaySoundAtEntity("play_sound_at_door""unlock_door.snt" /* or filename.snt */"door_name"0false);

GiveSanityBoostSmall(); // or GiveSanityBoost(); 

Tutorials: From Noob to Pro
(This post was last modified: 10-17-2011, 11:25 PM by Your Computer.)
10-17-2011, 11:23 PM
Website Find


Messages In This Thread
RE: Door messages and noises and memos in scripting? - by Your Computer - 10-17-2011, 11:23 PM



Users browsing this thread: 1 Guest(s)