#Explosion doesn't want to create at variable [solved]

1 messages · Page 1 of 1 (latest)

brisk dock
#

I want to create explosion in one direction that moves in a straight line until about 10 blocks

stuck summit
#

Create a vector, loop x times: adjust the length and show particles

brisk dock
#

how do I use a vector in skript

stuck summit
#

set {_v} to vector between a and b

brisk dock
#

I right now have this but it doesn't work any ideas why

          loop 10 times:
            set {_vN} to vector (0, 0, {start})
            set {_loc} to location of victim offset by {_vN}
            create a safe explosion at {_loc}
            set {start} to {start} + 1```
stuck summit
#

Start can be a local variable

brisk dock
#

I made it a local variable but I seem to get errors with the vector variables

stuck summit
#

Any errors?

brisk dock
#

yes I got this one:

[23:54:32] [Server thread/INFO]:     Line: set {_vN} to vector (0, 0, {_start})
[23:54:32] [Server thread/INFO]:

and

[23:54:32] [Server thread/INFO]:     Line: create a safe explosion at {_loc}
[23:54:32] [Server thread/INFO]:
stuck summit
#

no space vector(x, y, z)

#
brisk dock
brisk dock
#

How to use vectors

brisk dock
#

Explosion doesn't want to create at variable

marsh nimbus
#

Could try

Create a safe explosion at location at {_loc}

#

Not sure it’ll work though

brisk dock
#

no didn't work

marsh nimbus
#

‘Create a safe explosion of force 2 at {_loc}’

Or

‘Create a safe explosion of force 2 at location at {_loc}’

#

Maybe

brisk dock
#

Create a safe explosion of force 2 at {_loc} worked thanks!

marsh nimbus
#

All good 😊