Attempting to create flamethrower, but particles not working.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MultiDa

Member
Nov 16, 2020
3
0
1
23
I'm attempting to create a flamethrower that shoots particles that will damage people and set them on fire. It's been fine, but I have been facing a "cannot understand this condition/effect" error message which refers to the drawLine script.

Here is the code thus far:

on rightclick:
player is holding stone hoe named "&4Flame Thrower" with lore "&4It's very hot"
if target living entity is set:
drawline particle flame, XYZ 0.3, 0.3, 0.3, center player, target location of target living entity, id 100, rainbowMode true, solid false, density 2, length 10, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1
if target block is set:
drawline particle flame, XYZ 0.3, 0.3, 0.3, center player, target location of target block, id 100, rainbowMode true, solid false, density 2, length 10, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1

The indentation looks weird when posted on the forums but I assure you it's fine in reality.
Thanks in advance.
 
Hey there. The ID is a string, so instead of using 100 use "100". I believe that should fix your problem.
 
Status
Not open for further replies.