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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Help me on My Script please.
ZIEGMEBALLEN Offline
Junior Member

Posts: 18
Threads: 4
Joined: Feb 2014
Reputation: 1
#5
RE: Help me on My Script please.

(02-27-2014, 12:38 PM)JustAnotherPlayer Wrote:
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""Script_1""Teleport1"true1);
AddUseItemCallback("""SecondRoomKey_1""SecondRoom_1""UsedKeyOnDoor"true);
AddUseItemCallback("""Corridorkey_1""Hall""UsedKeyOnDoor"true);
}

void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("SecondRoom_1"falsetrue);
SetSwingDoorLocked("Hall"falsetrue);
PlaySoundAtEntity("""unlock_door""SecondRoom_1"0false);
PlaySoundAtEntity("""unlock_door""Hall"0false);
RemoveItem("SecondRoomKey_1");
RemoveItem("Corridorkey_1");
}

void Teleport1(string &in asParentstring &in asChildint alStates)
{
SetEntityActive("TeleportingNG_1"true);
PlaySoundAtEntity("""24_iron_maiden.snt""TeleportingNG_1"0false);
AddPropForce("TeleportingNG_1", -1000000"Player");


PHP Code: (Select All)
<LANGUAGE>
<
RESOURCES>
</
RESOURCES>
<
CATEGORY Name="CustomStoryMain">
<
Entry Name="Description">You Are a guy who's working as a Janitor in A Mansion Where you woke up alone at 6:30 AM. You discovered that there are monster inside and they don't want you to leave the MansionFind A Way to Leave the House without dying.</Entry>
</
CATEGORY>

<
CATEGORY Name="Journal">
<
Entry Name="Note_A3_Name">Discovering</Entry>
<
Entry Name="Note_A3_Text">I Woke up at 6:30 where i discovered that i'm alone.[br][br]I Need to Get out of the house, but... [br][br] I Also discovered something...There...Are....Monsters inside. I Need To Leave now and Get help as i am going to die in this house.. [br][br]Is this my last momnet ? God help Me, i don't know what i should do..[br][br][br][br][br]Sincerely.[br]Unknown</Entry>
</
CATEGORY>

<
CATEGORY Name="LevelDoors">
<
Entry Name="LevelDoor_1>Door Locked</Entry>
</CATEGORY>
</LANGUAGE> 

I guess you're really that desperate to fix this huh? A willingness to give me a reputation? Really? Besides your little jumpscare, most of us will hate it.

OMG !! Thank you for your help.. Much appreciated ... +rep
Keep up your good work "Justanotherplayer".. Big Grin Big Grin
i'll rate you.
02-27-2014, 12:41 PM
Find


Messages In This Thread
Help me on My Script please. - by ZIEGMEBALLEN - 02-27-2014, 12:06 PM
RE: Help me on My Script please. - by ZIEGMEBALLEN - 02-27-2014, 12:41 PM



Users browsing this thread: 1 Guest(s)