The method we have created to spawn smoke will be called once a plane gets hit. The more hits it takes, the higher the chance of emitting a smoke particle.
gameclass. The parameters are the plane object and the number of hits.
Method SpawnSmoke:Int(plane:ftObject, hits:Int)
100will be greater than
If Rnd(0,100)>(100-hits*10) Then
20pixels and the angle is calculated randomly taking the hits into account.
Local vec:Float = plane.GetVector(20,180+Rnd(-10*hits,10*hits),True) ...