Jump to content
Sign in to follow this  
dmarkwick

MP particles.

Recommended Posts

I cannot get MP particles. setParticleEtc commands do not work across MP, and also Drop command does not work across MP.

Anyone know what method/command/procedure I need to do to get MP particle effects?

Share this post


Link to post
Share on other sites
I cannot get MP particles. setParticleEtc commands do not work across MP, and also Drop command does not work across MP.

Anyone know what method/command/procedure I need to do to get MP particle effects?

There is no actual command to create an "MP particle", and it wouldn't be very wise anyway, because each particle created would need to be broadcasted, causing major traffic.

What you want to do is make sure the code that generates the particles is run on all systems. One example of how to do this would be to have all clients running a script that waits for a public variable:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

startParticles = false;

waitUntil {startParticles};

drop [blah blah blah];

drop [blah blah blah];

Then, when the server wants to create the particles, it just does the following:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

startParticles = true;

publicVariable "startParticles";

Will that work for you?

Share this post


Link to post
Share on other sites

Thanks for the reply MadDogX. What I have at the moment is this:

A huge trigger that adds an eventhandler to all units. The eventhandler runs a script called "DMSmokeEffects.sqf"

The script "DMSmokeEffects.sqf" should then run when any unit is killed, but in fact only the server host sees the effects. So there is multiple scripts running, one for each unit effected. I'm not a natural coder so I can't see how the PublicVariable method would work here.

Also, I cannot see how making the code run when PublicVariable has passed a new value would make the code work, when it doesn't work without it? Does the script sit inactive unless some sort of public variable has been passed? I get a small niggling feeling that the .sqf nature might be something to do with it, but of course I'm probably mistaken there too wink_o.gif I don't truly understand the differences between sqf & sqs. Perhaps one acts as a function and is perhaps more efficient memory-wise but apart from that... no smile_o.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×