Wednesday 4 August 2010

Scripting

Edited two scripts to get the right effect.

1st was a head bobbing script, I changed a couple of numbers on this script to get it right within the level.

2nd was a minimap camera I was having fun with, only problem was is that it set the default camera to the minimap camera and not the first person one, so I had to do a variable to put it back on the scene start.

var loadmaincamera = 1;

function Update () {
if(loadmaincamera == 1) {
toggleMinimap();
loadmaincamera = 0;
}
}

The toggle minimap function is a pre-defined function in the script.

No comments:

Post a Comment