Frictional Games Forum (read-only)

Full Version: A fucntion with the same name and the parameters already exist?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Uh what?
(01-07-2012, 02:35 AM)kartanonperuna Wrote: [ -> ]Uh what?
It means you have two objects in the map with the same name. As with a function
Hmmm what thell?But it worked few minutes ago?

It has to do with your script only. Look at your script and find the two that match.
Oh and its talking about the hps not the map.

Edit:Hah yes
Here my script:


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");
}
Just easily call them 'A' and 'B' for example.

It's highly recommended to rename objects that are important to the gameplay to your own name to prevent further issues.
I dont know what to take out.
Quote: PlaySoundAtEntity("", "break_wood.snt", "area1", 0, false);
Don't you miss something there?
No?What do I miss?
Oh shit, my bad. That script's okay.
Pages: 1 2 3