PDA

View Full Version : references


Banemus
08-20-2009, 04:33 PM
Hey,

Fn Test var =
(
var = 5
)


i = 1
Test i
break()


i is still 1 ... how do I send i to the function so it is changed outside the function as well?

SyncViewS
08-20-2009, 04:55 PM
(
function test &var =
(
var = 5
)

local i = 1
format "i: %\n" i

test &i
format "i: %\n" i
)
- Enrico

Banemus
08-20-2009, 06:38 PM
thx! appreciate it alot

PiXeL_MoNKeY
08-20-2009, 06:44 PM
For more information on using the "&" look up "By Reference Parameter Passing" in the Maxscript help.

-Eric

CGTalk Moderation
08-20-2009, 06:44 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.