11-13-2012, 11:02 PM
I wrote a script so when i collide with an area a message will pop up on the screen, But it doesn't.
The Part From The Script:
AddEntityCollideCallback("Player", "Blowdoor_1", "Messagepopup", true, 1);
void Messagepopup(string &in asChild, string &in asParent, int alState)
{
SetMessage("Popupmessage_1", "Popup_1", 3);
}
And the .Lang:
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">What The Hell?</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
</CATEGORY>
<CATEGORY Name="Popupmessage_1">
<Entry Name="Popup_1">What The?</Entry>
</CATEGORY>
<CATEGORY Name="Descriptions">
</CATEGORY>
<CATEGORY Name="Levels">
What the hell idi i do wrong? :O
The Part From The Script:
AddEntityCollideCallback("Player", "Blowdoor_1", "Messagepopup", true, 1);
void Messagepopup(string &in asChild, string &in asParent, int alState)
{
SetMessage("Popupmessage_1", "Popup_1", 3);
}
And the .Lang:
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">What The Hell?</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
</CATEGORY>
<CATEGORY Name="Popupmessage_1">
<Entry Name="Popup_1">What The?</Entry>
</CATEGORY>
<CATEGORY Name="Descriptions">
</CATEGORY>
<CATEGORY Name="Levels">
What the hell idi i do wrong? :O