01-05-2012, 02:12 PM
01-05-2012, 02:23 PM
So what happens, you click on the crowbar, place it on prison_locked and it says no object to use on?
01-05-2012, 02:27 PM
It says"Cannot use this item this way!"
This is my entire extra_english file:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun!</Entry>
</CATEGORY>
AddUseItemCallback("", "crowbar_1", "prison_locked", "UnlockDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "door_script_1", "crowbarfunc", true, 1);
}
void UnlockDoor(string &in asItem, string &in asEntity)
{
SetEntityActive("crowbar_joint_1", true);
//SetSwingDoorLocked("prison_locked", false, true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);
RemoveItem("crowbar_1");
}
void crowbarfunc(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("prison_locked", 0.0f);
SetEntityActive("crowbar_joint_1", false);
SetEntityActive("crowbar_dyn_1", true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);
}
</LANGUAGE>
None of my scripts work!Really frustrating.
This is my entire extra_english file:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun!</Entry>
</CATEGORY>
AddUseItemCallback("", "crowbar_1", "prison_locked", "UnlockDoor", true);
AddEntityCollideCallback("crowbar_joint_1", "door_script_1", "crowbarfunc", true, 1);
}
void UnlockDoor(string &in asItem, string &in asEntity)
{
SetEntityActive("crowbar_joint_1", true);
//SetSwingDoorLocked("prison_locked", false, true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);
RemoveItem("crowbar_1");
}
void crowbarfunc(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("prison_locked", 0.0f);
SetEntityActive("crowbar_joint_1", false);
SetEntityActive("crowbar_dyn_1", true);
//PlaySoundAtEntity("", "unlock_door", "prison_locked", 0, false);
}
</LANGUAGE>
None of my scripts work!Really frustrating.
01-05-2012, 02:31 PM
What is the maps name, same with the .hps; and did you download this or pay for it?
01-05-2012, 02:36 PM
Just another night.map and HPS is Just another night .And what you mean the game?I downloaded it since it wasnt in game stores shelves.
01-05-2012, 02:42 PM
(01-05-2012, 02:36 PM)kartanonperuna Wrote: [ -> ]Just another night.map and HPS is Just another night .And what you mean the game?I downloaded it since it wasnt in game stores shelves.Did you pirate the game is what I meant, and rename the names to this:
just_another_night.map
just_another_night.hps
01-05-2012, 02:42 PM
Yes I did.
01-05-2012, 02:43 PM
What the hell? you have your scripts inside extra_english?
addaan sun msn, tai skype/steam? voin nopeesti opettaa perus scriptit...
addaan sun msn, tai skype/steam? voin nopeesti opettaa perus scriptit...
01-05-2012, 02:44 PM
Yes.What can I say,I'm a noob.Addaa vaik skypes kartanonperuna.
Ooh theyre supposed to be in Custom story settings?
Ooh theyre supposed to be in Custom story settings?
01-05-2012, 02:46 PM
(01-05-2012, 02:44 PM)kartanonperuna Wrote: [ -> ]Yes.What can I say,I'm a noob.Addaa vaik skypes kartanonperuna.You pirated the game?
Ooh theyre supposed to be in Custom story settings?
And no, the are supposed to be in the .hps to the corresponding map file.