Author Topic: Something i've always seen but never learned.  (Read 626 times)

Anyone know how to make the event for spawning a projectile/explosion when you click wherever you look?
I know it includes VCE.
And no, it's not for any sort of abusive purposes.

I'm pretty sure it involves relays to see if you are clicking. Otherwise I'm not sure how to do it.

Try to figure it out on your own
Hint: relay a check if the player is firing

Try to figure it out on your own
Hint: relay a check if the player is firing
i don't understand VCE and i've tried to do it on my own.

onRelay = > VCE_ifValue => <var:pl:firing> == 1

onRelay = > VCE_ifValue => <var:pl:firing> == 1
Is it only that 1 line of event or is that part of a few lines?

Is it only that 1 line of event or is that part of a few lines?
Follow it up with

ifVariableTrue>player>spawn projectile


I think...

Follow it up with

ifVariableTrue>player>spawn projectile


I think...

and make a relay before that and the third onrelay>self, etc. at the bottom.

onActivate>self>fireRelay
onRelay>VCE_ifValue >[<var:pl:firing>] [==]  [1]
ifVariableTrue>player>spawnProjectile
onRelay>self>fireRelay [33]

Thanks guys, figured it out.