CheckPoint issue and memento.
Hi.
I just started an outside map. And I put some scripts on it... Now... dont know whats wrong because the game DONT crash!... but one memento and the chekpoint dont work... I try lot of things to make it change but nothing make it hapens.
Here is the WHOLE script in the map.
void OnStart()
{
AddEntityCollideCallback("Player", "AreaOfDeep", "Drowned", true, 1);
AddEntityCollideCallback("Player", "AreaWaterMemento", "EventWaterQuest", true, 1);
AddEntityCollideCallback("WoodenBoardItem1", "ScriptWooden1", "PositionFirstBoard", true, 1);
AddEntityCollideCallback("WoodenBoardItem2", "ScriptWooden2", "PositionSecondBoard", true, 1);
}
void EventWaterQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("area", "watermemento");
}
void ElevatorNotWorking(string &in asEntity, int LeverState)
{
if(LeverState == 1)
{
AddQuest("Elevator", "cantuseelevator");
PlaySoundAtEntity("", "elevator_lever_min", "Lever", 0, false);
SetLeverStuckState(asEntity, LeverState, true);
}
}
void Drowned(string &in asParent, string &in asChild, int alState)
{
CheckPoint("Checkpoint1", "PlayerStartArea_1","", "DeathCategory", "Deathtext");
PlaySoundAtEntity("", "impact_water_high3", "Player", 0, false);
}
void PositionFirstBoard(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WoodenBoardItem1", false);
PlaySoundAtEntity("", "04_place_wood.snt", "ScriptWooden1", 0, false);
SetEntityActive("WoodenBoardJoint1", true);
}
void PositionSecondBoard(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("WoodenBoardItem2", false);
PlaySoundAtEntity("", "04_place_wood.snt", "ScriptWooden2", 0, false);
SetEntityActive("WoodenBoardJoint2", true);
}
The watermemento and the chekpoint are not working...
The Memento.. When the character enter to the script area "AreaWaterMemento" the little journal icon in the bottom appears, but when I open it there is nothing wrote on it.
(I DID WRITE THE CODE IN THE EXTRA_LANG file!!), here it is...
<CATEGORY Name="Journal">
<Entry Name="Quest_watermemento_Text">I should be careful, the lake is deep and the flow is too high tonight </Entry>
</CATEGORY>
The other thing is the ChekPoint, the area where player collides is "AreaOfDeep", and its suposed when the character enters there he dies (drowned) and then teleport, but when I enter to the area nothing hapens.
Please whats wrong with the scripts to make them not work???
thanks
|