Thread: Params Problem
View Single Post
  #2  
Old 06-22-2006, 02:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote