Ok, the null exeption you get has nothing to do with your script, it's the underlying engine that causes this problem.
You get also an
=================================================
System.ArgumentOutOfRangeException:
Server stack trace:
bei System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()
bei Mission.TriggerProcessing(String shortName, Boolean active)
bei Mission.OnTrigger(Int32 missionNumber, String shortName, ...
for example you have a Array arr with 100 entries. so you can access the entries with arr[0]..arr[99] if you try arr[100] you will get this exeption.
In C# the first element of an Array has the index 0 and the last has count-1.
|