H
HUMMAN
Guest
This is how i transfer my scripts;
an object:
array[x][y]=sc_example;
an other object:
script=array[x][y] // (using relation for instance and with function etc. written for simplification)
if(something_happens)
{
script_execute(script);
}
The code WORKS intended for non-argument scripts. But i want to do: // i know snytax is wrong but a good way to express my desire
array[x][y]=sc_example(argument1, argument2...); but as you now it doesnt work. I want to define and assign arguments in the first object, but i couldn't figure it out.
an object:
array[x][y]=sc_example;
an other object:
script=array[x][y] // (using relation for instance and with function etc. written for simplification)
if(something_happens)
{
script_execute(script);
}
The code WORKS intended for non-argument scripts. But i want to do: // i know snytax is wrong but a good way to express my desire
array[x][y]=sc_example(argument1, argument2...); but as you now it doesnt work. I want to define and assign arguments in the first object, but i couldn't figure it out.