12-16-2011, 10:00 PM
12-16-2011, 10:08 PM
12-16-2011, 11:10 PM
Thanks. I have two maps in my custom story, first map working fine but second dont do anithing what i writed in script:
Can someone tell what is here wrong?
PHP Code:
//===========================================
// This runs when the map first starts
void OnStart()
{
PreloadSound("raping.snt");
PreloadSound("penis.snt");
AddEntityCollideCallback("Player", "ScriptArea_1", "penis", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "reping", true, 1);
}
void penis()
{
PlaySoundAtEntity("", "penis.snt", "Player", 0, false);
}
void raping()
{
AddTimer("timer1", 7, "look_to_bed");
AddTimer("timer2", 130, "end");
StartPlayerLookAt("cabinet_nice_1", 10, 25, "stoplook");
}
void look_to_bed()
{
RemoveTimer("timer1");
StartPlayerLookAt("pig_corpse_1", 10, 25, "stoplook");
}
void stoplook()
{
StopPlayerLookAt();
}
void end()
{
//StartCredits(penis.ogg, true, string& asTextCat, string& asTextEntry, 0);
}
Can someone tell what is here wrong?
12-17-2011, 12:19 AM
All callback functions have a specific syntax that you must follow, or else the game won't be able to find your callback functions. If you search for the AddEntityCollideCallback function in the link i posted in my previous post, you'll find the syntax required for the callback. You may also want to look at this video: http://www.youtube.com/watch?v=9DCLO62zh...8&index=12
12-17-2011, 01:46 PM
ok thanks, but how to make lines? i have this code in lang file:
and i what to make lines. One sentence per line.
PHP Code:
<CATEGORY Name ="end">
<Entry Name="ennd">This mod created by markis95. I hope you love me. :3 This is my first ever story. Thanks for playing</Entry>
</CATEGORY>
and i what to make lines. One sentence per line.
12-17-2011, 02:09 PM
Use breakrows: [br]
Example:
This text is on line one![br]This text is on line two!.
Example:
This text is on line one![br]This text is on line two!.
12-17-2011, 02:26 PM
OMG. I tryed \n and <br/>. Thank you realy much. You are good guy.