- Joined
- Oct 30, 2009
- Messages
- 14,019
- Reaction score
- 4
- Points
- 0
I don't understand this:
How many particle streams there should be? Do you want to add 4 or 8 times the particle stream at first coordinates?
The "hover_pstream [0]" will be overwritten 3 or 7 times if you do this. And when you delete the "hover_pstream [0]" particle stream, only the last added will be deleted. Have you forgotten to comment out "for", or add "{}" braces there (and extend 8 times the hover_pstream table if that's the case)?
Code:
[color=red]for (i=0; i<NumHover; i++)[/color]
hover_pstream [0] = AddExhaustStream (th_hover,_V(0.64,-8,9.378) , &contrail_hover);
hover_pstream [1] = AddExhaustStream (th_hover,_V(-0.64,-8,9.378) , &contrail_hover);
hover_pstream [2] = AddExhaustStream (th_hover,_V(-0.64,-8,-9.399) , &contrail_hover);
hover_pstream [3] = AddExhaustStream (th_hover,_V(0.64,-8,-9.399) , &contrail_hover);
The "hover_pstream [0]" will be overwritten 3 or 7 times if you do this. And when you delete the "hover_pstream [0]" particle stream, only the last added will be deleted. Have you forgotten to comment out "for", or add "{}" braces there (and extend 8 times the hover_pstream table if that's the case)?