Quote:
|
Originally Posted by Stefan
The params[] array is only set when a script function is called from outside, or when an event is invoked on a gani script (and you are using if (playerenters) etc. instead of onPlayerEnters). There is also only one params[] for the whole script engine, so it gets overwritten. It would be too slow to copy the function parameters to a separate array on each function call, also there are many scripts relying on the fact that you can access the original params[] array in subfunctions.
|
Wouldn't it be possible to do like the real params? Use the temp.params = params; at the start of each function? ( therefore, params would be local to the function ? )