my "smoke grenade" is activated when I throw it, but the other grenades when I throw them are already activated

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By perded
if Input.is_action_just_pressed("1"):
	var new = smoke.instantiate()
	new.position = $body/camera/hand.global_position

:slight_smile: e

:bust_in_silhouette: Reply From: stormreaver

Assuming your code sample is in your grenade class, it looks like you are reusing the same grenade but simply attaching new smoke to it each time you press the “1” key.

my smoke var is preloaded packed scene and i added fog volume class in new var in smoke scene

perded | 2023-05-06 05:44

Which class is your above code snippet from?

stormreaver | 2023-05-06 11:56