Hi salmo
Wonderfull scripts for cod-missions this Forum has. Easy to implement in home-made missions, nice to see them perform their specific jobs but not so easy to understand what makes them work. So I decided to enlighten myself a little bit in this respect. I thought I might try to realise this by taking a closer look at a certain script, preferably a relative small one. So I copied your Ship_oil_ fire_effect scrip into Visual Studio Express 2010 as a new project and added the necessary References to it (hereby following Kodiak’s instructions in Tutorial Simple Scripting Lessons I).
After this I ploughed myself through the programme, line for line and sometimes the penny dropped, sometimes it got jammed.
Much appreciated were the various explanations after double slash.
What I failed to understand completely was the line that says:
int i = random.Next(0, 100 + 1);
Perhaps you would be so kind to help me out.
|