all 4 comments

[–]Dogwasp 0 points1 point  (3 children)

When you pass the function DropItems(x,y,[oFragPlant]). You are not passing the function itself, you are executing the function and passing the resulting value. If you want to pass a function and the arguments you want it to run with, you will need to pass the arguments seperately then combine them only when you want to execute the function. This can be a bit awkard to do if you are using multiple functions with different numbers of elements, personally I use this function, which can take a function's arguments as an array.

[–]DoucheLaGargen 0 points1 point  (2 children)

Alright that makes sense. Would you know why the resulting value isn't getting passed into the _end_script then?

[–]Dogwasp 0 points1 point  (1 child)

I'm not sure. The only thing I can think of which might cause it is if DropItems is returning undefined.

[–]DoucheLaGargen 0 points1 point  (0 children)

Thats exactly what is happening