English Solved Issue with spawning smoke grenades on dedicated server

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?
 

Maxence

Admin
Membre du personnel
Hello,

I can't find this classname in the list:
S’il vous plaît, Connexion ou S'inscrire pour voir le lien !

Did you try with another classname? For example :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

By the way, the " are in your code ? If yes, you'll need to dooble the "" inside, like that :
S’il vous plaît, Connexion ou S'inscrire pour voir le code !
 

Bundestag

User
3/4/21
25
1
1
300
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:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

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/
 

Bundestag

User
3/4/21
25
1
1
300
Its not working :(

IM calling the script via remoteExec like this:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

The code of the Partikelscript looks like this:

S’il vous plaît, Connexion ou S'inscrire pour voir le code !

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:
S’il vous plaît, Connexion ou S'inscrire pour voir le code !

The grenade spawns even with the throwing sound but dose not emit smoke just the object is there.
 
Dernière édition:

Yuri Zoko

TP-Shop Team
Membre du personnel
Developer
31/3/20
437
71
63
1 300
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.
 

Bundestag

User
3/4/21
25
1
1
300
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.
 

Bundestag

User
3/4/21
25
1
1
300
Well its not that much difrent. I guess i had some kind of twist. The solution from Zoko is what got me going.
Thank you Guys <3
 
Activité
Pour l'instant, il n'y a personne ici