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 Help Assist me while I learn to script
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#6
RE: No Matching Signatures

I'll just go ahead and put a more... newcomer-friendly version of what Mudbill posted earlier.

The events you're looking for are
void SetEntityCallbackFunc(string& asName, string& asCallback);
for the break callback
and
void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);

PHP Code: (Select All)
OnStart()
{
    
SetEntityCallbackFunc("nameOfTheEntity""functionToCall");
}

void functionToCall(string &in asEntityint alState//notice this function is called the same as referenced above.
{
    
SetMessage("categoryOfText""entryInCategory"0); //The last number is how long the message should be displayed, 0 = calculated depending on the length of the text. The text and category are in a different file called "extra_english.lang" in the custom story folder.


Your extra_english.lang should contain something like this:
PHP Code: (Select All)
<LANGUAGE>
        <
CATEGORY Name="CustomStoryMain">
            <
Entry Name="Description"Description of your story</Entry>
        </
CATEGORY>

        <
CATEGORY Name="categoryOfText"//Notice the name of the category & entry are referenced in your .hps file.
            
<Entry Name="entryInCategory">Text to appear on screen.</Entry>
        </
CATEGORY>
</
LANGUAGE
01-29-2016, 07:12 PM
Find


Messages In This Thread
Assist me while I learn to script - by Toggle - 01-26-2016, 10:59 PM
RE: Level Editor Crash - by Mudbill - 01-27-2016, 01:38 AM
RE: Level Editor Crash - by Toggle - 01-27-2016, 03:01 AM
RE: No Matching Signatures - by Toggle - 01-29-2016, 02:56 AM
RE: No Matching Signatures - by Mudbill - 01-29-2016, 08:25 AM
RE: No Matching Signatures - by Spelos - 01-29-2016, 07:12 PM
RE: No Matching Signatures - by Toggle - 01-29-2016, 07:15 PM
RE: Assist me while I learn to script - by Toggle - 01-29-2016, 08:29 PM
RE: Assist me while I learn to script - by Spelos - 01-29-2016, 10:45 PM



Users browsing this thread: 1 Guest(s)