Squid: Thanks man ! thats really put a smile on my face this morning !
Matt G: Yup there is a way...i'll go write a command for it now !
Here ya go mate 4 new functions.
PSourcePositionX(sourcenumber)
Finds the specified particles sources X co-ordinate
PSourcePositionY(sourcenumber)
Finds the specified particles sources Y co-ordinate
PSourcePositionZ(sourcenumber)
Finds the specified particles sources Z co-ordinate
PositionPSource(SourceNumber, x#, y#, z#)
Positions the specified particle source at x#,y#,z#
These functions will not slow down your game in the slightest as you are just chaging a couple of variables.
Add this code to your program to gain the new commands. I will add them to the main system soon.
Function PSourcePositionX(sourcenumber)
res#=ParticleSource(SourceNumber).X
Endfunction res#
Function PSourcePositionY(sourcenumber)
res#=ParticleSource(SourceNumber).Y
Endfunction res#
Function PSourcePositionZ(sourcenumber)
res#=ParticleSource(SourceNumber).Z
Endfunction res#
function PositionPSource(SourceNumber, x#, y#, z#)
ParticleSource(SourceNumber).X=x#
ParticleSource(SourceNumber).Y=y#
ParticleSource(SourceNumber).Z=z#
endfunction
Hope thats helps !