View Single Post
  #8  
Old 05-25-2011, 08:39 AM
SYN_Flashman SYN_Flashman is offline
Approved Member
 
Join Date: Feb 2011
Posts: 48
Default

Quote:
Originally Posted by Ataros View Post
No.
"Object != null" is a check if the object exists. If your code does smth to an object but it does not exist you get the exception I believe. Make sure you check "Object != null" before any action in your code.

I may be wrong. Always post your complete code if you want quick help without guessing from someone who really knows C# (not me ).

I will post it later thnis evening when im home. My mission actually has 3 scripts to just to add to the confusion!

Essentially there is a primary script which is tied to the main mission. This has the despawn script and all of that plus at specific times is starts two submissions (one for red, one for blue). These two submissions themselves contain nothing, just an empty map, however they have scripts which spawn a number of sub-sub missions over a period of about three hours. These are the actual planes going to targets etc.

The purpose behind this is that the primary script sets the submissions going so they are repeated every three hours and it is intended to allow the server to be continuously operating.
Reply With Quote