Load Application

How can I make my button close the current program (The main game) and open another program?
Like Call of Duty 4 PC Version - It closes the single player menu and opens up the multiplayer menu

  • Felipe

what's the problem with this script?

2 Answers

2

Well Felipe is asking about starting external application like notepad, calc or others.
try this topic… think for a moment … and read again :slight_smile:

hope that help

regards
letmeknowit

You have my thanks man

you could try this:

function OnGUI () {

if (GUI.Button (Rect(0, 0, 20, 20) {

   Application.LoadLevel("WhatEverYouCalledThisScene");

}

}

I believe the scene before you load a new one is inactive to save memory (not 100% sure of that).

I said the to CLOSE THE CURRENT PROGRAM AND OPEN ANOTHER ONE

I don't understand. Do you mean scene?

a program is way different than a scene