Frictional Games Forum (read-only)

Full Version: How to Make an ending?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi forums it's me trollox , again -.-...
Anyhow, i wonder how do i creat a endscript that takes me to the credits?
I guess i have to creat a regular script area that'll triggure the credits?
I'd be very happy if someone could write it down in details because this is my first map and got no other scripting / maping experience what so ever, so that would help.

Trollox
create a script area and write the script:
{

AddEntityCollideCallback("Player", "scriptarea", "credits", true, 1);

}


void credits(string &in asParent, string &in asChild ,int alState)
{
StartCredits("musicname", "music loop", "text category", "text entry", put more 3);
}

The text category thought must be called "Ending" and the Entry must be "MainCredits"
I'm already done with the mod. But thanks for trying to help Smile