The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script doesnt work.
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#1
Script doesnt work.

It says:

A funciton with the same name and parameters already exist(hps) and "Downstairskey"is not declared.




void OnStart()
{
AddEntityCollideCallback("crowbar_joint_2", "crowcollide", "crowopen_func", true, 1);
AddUseItemCallback("", "crowbar_1", "prison_locked", "activatecrowdoor", true);
}



void crowopen_func(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("prison_locked", false, true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "area1", false);
SetEntityActive("crowbar_joint_2", false);
GiveSanityBoost();
PlaySoundAtEntity("", "break_wood.snt", "area1", 0, false);
SetSwingDoorClosed("prison_locked", false, true);
SetSwingDoorDisableAutoClose("prison_locked", true);
AddPropImpulse("prison_locked", 0, 0, -3, "world");
}

void activatecrowdoor(string &in asItem, string &in asEntity)
{
SetEntityActive("crowbar_joint_2", true);
RemoveItem("crowbar_1");
}

void OnStart()
{
AddUseItemCallback("", "Downstairsdoor", "cellar_wood01_slow", "KeyOnDoor", true);
}


void KeyOnDoor(string &in , string &in door)
{
SetSwingDoorLocked("cellar_wood01_slow", false, true);
PlaySoundAtEntity("", "unlock_door", "cellar_wood01_slow", 0, false);
RemoveItem(Downstairskey);
}


After I added they key opening door script.Whats wrong?
(This post was last modified: 01-07-2012, 06:32 AM by kartanonperuna.)
01-07-2012, 04:43 AM
Website Find


Messages In This Thread
Script doesnt work. - by kartanonperuna - 01-07-2012, 04:43 AM
RE: Script doesnt work. - by flamez3 - 01-07-2012, 04:57 AM
RE: Script doesnt work. - by kartanonperuna - 01-07-2012, 05:04 AM
RE: Script doesnt work. - by kartanonperuna - 01-07-2012, 06:08 AM
RE: Script doesnt work. - by flamez3 - 01-07-2012, 06:24 AM
RE: Script doesnt work. - by kartanonperuna - 01-07-2012, 06:26 AM
RE: Script doesnt work. - by flamez3 - 01-07-2012, 06:28 AM
RE: Script doesnt work. - by kartanonperuna - 01-07-2012, 06:31 AM
RE: Script doesnt work. - by flamez3 - 01-07-2012, 06:56 AM



Users browsing this thread: 1 Guest(s)