Seite 1 von 1

MaxScript: functions

Verfasst: 19.12.2006, 22:11
von Simon
Point in MaxHelp: "Defining Custom Functions"

Definition:

fn name =
(
)

Call:

name ();


the "()" important!!

Funktionen Müssen IM Rollout-Bereich definiert sein damit sie auf Objekte (Listbox etc) zugreifen können!

Verfasst: 02.04.2007, 16:52
von Simon
More than 1 function parameter

fn rotateCam x y z =
(
$camera01.pivot = [x,y,z];
)

on bRotWeapon1hAxe pressed do
(
rotateCam 1 2 3;
)