Author Topic: VCE Variables: Making a player fire a rocket in a vehicle  (Read 554 times)

Well, you saw the title. How? Deathwishez tried...
Code: [Select]
[X] 0 [0] onVehicleEnter > Self > fireRelay
[X] 1 [33] onRelay > Self > fireRelay
[X] 2 [0] onRelay > Player > VCE_ifValue > [<var:player:firing>] == [1] [ ]
[X] 3 [0] onVariableTrue > Player > spawnProjectile > [50] {Rocket} [0] [0] [0]
[X] 4 [0] onVariableTrue > Self > toggleEventEnabled > [3 4 5 6]
[ ] 5 [500] onVariableFalse > Self > setEventEnabled > [3 4] [X]
[ ] 6 [500] onVariableFalse > Self > setEventEnabled > [5 6] [ ]
[X] 7 [0] onVehicleExit > Self > cancelEvents

Try that. In theory, it should work.

...but no.
There is no onrelay -> player, but I'll find a way around it.

EDIT: It won't work. Topic time.
Does anyone want to try this puzzle? (it uses any event types)

you could just make the player or gunner fire on <var:pl:fireing>


Instead of relays, have VCE check to see if a null variable is 1

Bump, nvm about this topic.
Oops. I meant onRelay > Self. The ifValue output only runs through the Self target.
As you can see, IT HAS BEEN SOLVED.
Yay.