Need a script that will crash the standalone

Hi,

I need a script for the ending of my game that will cause the standalone to crash upon triggering a specific collider (when the player walks out a certain door he plummits / “falls forever”-- however there will be a thin box collider a little ways below so that after a short freefall the app crashes and causes the following crash notice: (except with the name of the app not terminal)
[18524-screen+shot+2013-11-26+at+3.39.25+am.png|18524]

Does it matter what happens if the user hits the Report button?

You want your game to crash unexpectedly? That's got to be the worst UX design ever!

Either this is a terrible idea or you just want to create a Unity3d based virus... And even thought it wouldn´t be such a great virus!

i dont want to create a virus i just want the app to crash at the end when u fall, get it ?

2 Answers

2

i dont think so; it’s for an art project / performance

Create an GameObject with Animator, add AnimationClip to it. add event to animation. Call gameObject.SetActive(false) in handler.

http://speedy.sh/hXGkP/New-Unity-Project-2.rar

here is demo project. works for unity 4.3. Maybe will work for every 4.x version need a check.

thanks will try this today!

Why not just create a recursive loop? Simple, yet effective.

no, it will throw StackOverflowException.