English Solved Issue with spawning smoke grenades on dedicated server

  • Auteur de la discussion Auteur de la discussion Bundestag
  • Date de début Date de début

Bundestag

User
3/4/21
25
1
1
300
Hello everyone, i have a small problem with spawning smoke grenades via a script on a dedicated Altis Life Server. I am using this to spawn the grenade
"_smoke = "SmokeShellRed" createVehicle _pos;"
,the grenade spawns but no smoke is coming out of it. In the Editor it works just fine. Dose someone know what im doing wrong?
 
Solution
My bad, sorry :

Code:
private _smoke = "#particlesource" createVehicleLocal _pos;
_smoke setParticleParams [
    ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 1], "", "Billboard",
    1, 10, [0, 0, 0.5], [0, 0, 2.9], 1, 1.275, 1, 0.066, [4, 5, 10, 10],
    [[0.3, 0.3, 0.3, 0.33], [0.4, 0.4, 0.4, 0.33], [0.2, 0.2, 0, 0]],
    [0, 1], 1, 0, "", "", _smoke];
_smoke setParticleRandom [0, [0, 0, 0], [0,33, 0,33, 0], 0, 0,25, [0,05, 0,05, 0,05, 0,05], 0, 0];
_smoke setDropInterval 0.5;
Hello,

I can't find this classname in the list: https://community.bistudio.com/wiki/Arma_3:_CfgVehicles_Other
Did you try with another classname? For example :
Code:
_smoke = "test_EmptyObjectForSmoke" createVehicle _pos;

By the way, the " are in your code ? If yes, you'll need to dooble the "" inside, like that :
Code:
"_smoke = ""SmokeShellRed"" createVehicle _pos;"
 
Thank you for your answer <3
The Part with the double "" didn't work.
To clarify my problem, the smoke grenade is being created (i can see it) but the smoke effect dose not happen.

Fun fact: If i pick it up with ace it starts smoking but i dont know why :D.

I tried to make it work with the Particle effect system like this:

Code:
_smoke = "#particlesource" createVehicleLocal _pos;
        _smoke setParticleParams [
            ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 16, 1], "", "Billboard",
            1, 8, [0, 0, 0], [0, 0, 2.5], 0, 10, 7.9, 0.066, [2, 6, 12],
            [[0, 0, 0, 0], [0.05, 0.05, 0.05, 1], [0.05, 0.05, 0.05, 1], [0.05, 0.05, 0.05, 1], [0.1, 0.1, 0.1, 0.5], [0.125, 0.125, 0.125, 0]],
            [0.25], 1, 0, "", "", _smoke];
        _smoke setParticleRandom [0, [0.25, 0.25, 0], [0.2, 0.2, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
        _smoke setDropInterval 0.1;

In the Editor on my test mission it works.
But when i try to implement it on my server it don't.

I'm implementing it with this Tutorial : https://forum.the-programmer.com/post/lancer-un-script-en-fonction-dun-traitement.1845/
 
Hey, try this:

Code:
private _smoke = "#particlesource" createVehicleLocal _pos;
_ps1 setParticleParams [
    ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 1], "", "Billboard",
    1, 10, [0, 0, 0.5], [0, 0, 2.9], 1, 1.275, 1, 0.066, [4, 5, 10, 10],
    [[0.3, 0.3, 0.3, 0.33], [0.4, 0.4, 0.4, 0.33], [0.2, 0.2, 0, 0]],
    [0, 1], 1, 0, "", "", _ps1];
_ps1 setParticleRandom [0, [0, 0, 0], [0,33, 0,33, 0], 0, 0,25, [0,05, 0,05, 0,05, 0,05], 0, 0];
_ps1 setDropInterval 0.5;
 
Hey, try this:

Code:
private _smoke = "#particlesource" createVehicleLocal _pos;
_ps1 setParticleParams [
    ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 1], "", "Billboard",
    1, 10, [0, 0, 0.5], [0, 0, 2.9], 1, 1.275, 1, 0.066, [4, 5, 10, 10],
    [[0.3, 0.3, 0.3, 0.33], [0.4, 0.4, 0.4, 0.33], [0.2, 0.2, 0, 0]],
    [0, 1], 1, 0, "", "", _ps1];
_ps1 setParticleRandom [0, [0, 0, 0], [0,33, 0,33, 0], 0, 0,25, [0,05, 0,05, 0,05, 0,05], 0, 0];
_ps1 setDropInterval 0.5;
I will thank you <3
 
Its not working :(

IM calling the script via remoteExec like this:
Code:
[_nObject] remoteExec ["life_fnc_myParticleFunction", 0];

The code of the Partikelscript looks like this:

Code:
params [
    ["_nObject",objNull,[objNull]]

];
diag_log "Script called";
_pos = getPos _nObject;
private _smoke = "#particlesource" createVehiclelocal _pos;
    _smoke setParticleParams [
        ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 16, 1], "", "Billboard",
        1, 8, [0, 0, 0], [0, 0, 2.5], 0, 10, 7.9, 0.066, [2, 6, 12],
        [[0, 0, 0, 0], [0.05, 0.05, 0.05, 1], [0.05, 0.05, 0.05, 1], [0.05, 0.05, 0.05, 1], [0.1, 0.1, 0.1, 0.5], [0.125, 0.125, 0.125, 0]],
        [0.25], 1, 0, "", "", _smoke];
    _smoke setParticleRandom [0, [0.25, 0.25, 0], [0.2, 0.2, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
    _smoke setDropInterval 0.1;
    _smoke attachTo [_nObject, [0,0,0]];
diag_log "smoke spawned";
sleep 19;
deleteVehicle _smoke;

The script gets executed and i can tell that the diag_log in the scripts is beein outputed.

Oh and when i do this with a smoke grenade like this:
Code:
_smoke = "SmokeShellRed" createVehicle _pos;

The grenade spawns even with the throwing sound but dose not emit smoke just the object is there.
 
Dernière édition:
My script works, I tested in game before sending it to you.

If you have sounds but no smoke, it may be either your display or a particle clearance issue on your server.
 
My script works, I tested in game before sending it to you.

If you have sounds but no smoke, it may be either your display or a particle clearance issue on your server.
It worked with the _smoke and _ps1? dose it not have to be _smoke or am i missing somthing?
i marked it with arrows in the code
Code:
private ----->_smoke = "#particlesource" createVehicleLocal _pos;
--->_ps1 setParticleParams [
    ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 1], "", "Billboard",
    1, 10, [0, 0, 0.5], [0, 0, 2.9], 1, 1.275, 1, 0.066, [4, 5, 10, 10],
    [[0.3, 0.3, 0.3, 0.33], [0.4, 0.4, 0.4, 0.33], [0.2, 0.2, 0, 0]],
    [0, 1], 1, 0, "", "", _ps1];
_ps1 setParticleRandom [0, [0, 0, 0], [0,33, 0,33, 0], 0, 0,25, [0,05, 0,05, 0,05, 0,05], 0, 0];
_ps1 setDropInterval 0.5;
 
My bad, sorry :

Code:
private _smoke = "#particlesource" createVehicleLocal _pos;
_smoke setParticleParams [
    ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 7, 1], "", "Billboard",
    1, 10, [0, 0, 0.5], [0, 0, 2.9], 1, 1.275, 1, 0.066, [4, 5, 10, 10],
    [[0.3, 0.3, 0.3, 0.33], [0.4, 0.4, 0.4, 0.33], [0.2, 0.2, 0, 0]],
    [0, 1], 1, 0, "", "", _smoke];
_smoke setParticleRandom [0, [0, 0, 0], [0,33, 0,33, 0], 0, 0,25, [0,05, 0,05, 0,05, 0,05], 0, 0];
_smoke setDropInterval 0.5;
 
Solution
So, i have finally found out what the problem is. My Server dose not create #particelSources and smoke objects via scripts. I dont know why tho. Is there Someone that knows what could cause such behavior?

Im on Vication for 2 weeks so i can not respond but i hope someone can help me out here. i dont know what to do.