Game Development Community

Passing a c++ array pointer to script

by Corin · in Torque Game Engine · 11/21/2006 (10:22 am) · 2 replies


#1
11/21/2006 (10:22 am)
You dont.

What you can do instead is to make a script accessible C++ array object and use that with various script methods.

I'm pretty sure there is at least 1 resource already doing this - with a somewhat ackward script interface, but usable
#2
11/21/2006 (11:46 am)
Aye, either that or you will have to store all the arrays in some kind of list with every array represented by an ID, pretty much like ConsoleObject works.

Save yourself the pain and search for the array resource instead. :)