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
MY CAPS LOCK BUTTON BROKE
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: CUSTOM STORY ERROR MESSAGES!

PHP Code: (Select All)
void OnStart()
{
}

void PickupKey(string &in asEntitystring &in asItem)

AddQuest("quest1""TestQuest");
AddUseItemCallback("""MasterBedroomKey""bedroomdoor","UseMasterBedroomKey"true);
AddEntityCollideCallback("Player""AreaMemento""EventQuest"true1);
}
 
void UseMasterBedroomKey(string &in asItemstring &in asEntity)
{
SetMessage("message""message1"3);
}

void NAMETHISYOURTIMER(string &in asTimer)
{
AddTimer(""1.1"TimerDoorCanClose");
}

 
void TimerDoorCanClose(string &in asTimer)
{
SetSwingDoorDisableAutoClose("Door"false);
}

void WHATYOUWANTTOHAPPNHERE(string &in asTimer)

AddUseItemCallback("""Crowbar""Door""UseCrowbarOnDoor"true);
AddEntityCollideCallback("Joint""AreaBreak""BreakDoor"true1);
}

 
void UseCrowbarOnDoor(string &in asItemstring &in asEntity)
{
RemoveItem(asItem);
PlaySoundAtEntity("""player_crouch.snt""Player"0.05false);
AddTimer(asEntity0.2"TimerPlaceCrowbar");


void TimerPlaceCrowbar(string &in asTimer)
{
SetEntityActive("Joint"true);
PlaySoundAtEntity("""puzzle_place_jar.snt"asTimer0false);
}

 
void BreakDoor(string &in asParentstring &in asChildint alState)
{
SetEntityActive("Joint"false);
SetEntityActive("Broken"true);
SetSwingDoorLocked("Door"falsefalse);
SetSwingDoorClosed("Door"falsefalse);
SetSwingDoorDisableAutoClose("Door"true);
AddPropImpulse("Door"00,3"world");
CreateParticleSystemAtEntity("""ps_hit_wood.ps""Areaeffect"false);
PlaySoundAtEntity("""break_wood_metal""Areaeffect"0false);
GiveSanityBoostSmall();
PlayMusic("10_puzzle01.ogg"false0.70.110false);
AddTimer(""0.1"TimerPushDoor");


void TimerPushDoor(string &in asTimer)
{
AddPropImpulse("Door", -421"world");
AddTimer(""1.1"TimerDoorCanClose");
}

 
void TimerDoorCanClose(string &in asTimer)
{
SetSwingDoorDisableAutoClose("Door"false);
}

 
void touchdoor(string &in asEntitystring &in type)
{
AddQuest("door""touchdoor");
}
 
void EventQuest(string &in asParentstring &in asChildint alState)
{
AddQuest("area""enterarea");


void touchdoor(string &in asEntity)
{
AddQuest("door""touchdoor");
}
 
 
 
void OnLeave()
{


Edit ; Haven't got time now to really test, Finished my FC mod..
If there are any errors let me\us know here.
I'll check some often here.
Good luck!
(This post was last modified: 12-23-2013, 12:58 AM by DnALANGE.)
12-23-2013, 12:53 AM
Find


Messages In This Thread
MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 12:04 AM
RE: CUSTOM STORY ERROR MESSAGES! - by DnALANGE - 12-23-2013, 12:10 AM
RE: CUSTOM STORY ERROR MESSAGES! - by DnALANGE - 12-23-2013, 12:49 AM
RE: CUSTOM STORY ERROR MESSAGES! - by Kullin - 12-23-2013, 12:51 AM
RE: CUSTOM STORY ERROR MESSAGES! - by DnALANGE - 12-23-2013, 12:53 AM
RE: CUSTOM STORY ERROR MESSAGES! - by Romulator - 12-23-2013, 01:11 AM
RE: CUSTOM STORY ERROR MESSAGES! - by DnALANGE - 12-23-2013, 01:24 AM
RE: MY CAPS LOCK BUTTON BROKE - by Romulator - 12-23-2013, 01:41 AM
RE: MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 01:52 AM
RE: MY CAPS LOCK BUTTON BROKE - by DnALANGE - 12-23-2013, 01:56 AM
RE: MY CAPS LOCK BUTTON BROKE - by Romulator - 12-23-2013, 02:00 AM
RE: MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 02:01 AM
RE: MY CAPS LOCK BUTTON BROKE - by Romulator - 12-23-2013, 02:04 AM
RE: MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 02:06 AM
RE: MY CAPS LOCK BUTTON BROKE - by Romulator - 12-23-2013, 02:11 AM
RE: MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 02:15 AM
RE: MY CAPS LOCK BUTTON BROKE - by Traggey - 12-23-2013, 02:16 AM
RE: MY CAPS LOCK BUTTON BROKE - by Radical Batz - 12-23-2013, 02:27 AM
RE: MY CAPS LOCK BUTTON BROKE - by Traggey - 12-23-2013, 02:28 AM



Users browsing this thread: 1 Guest(s)