1. #1

    Hold value of a variable data source vector

    Hi

    i need to grab a vector from an info position and keep it locked. z axis left/right
    im making a shooter and need the bullet not to follow the player and stay in a straight line. (up) from where it was shot.
    currently bullet moves with player, not ideal.

    easiest would be to grab the value at time of shooting and prevent the info position from updating this value. then reset on bullet end.
    but there is no disable function on data values.

    i tried subtracting the movement after shooting but when i release it resets, so end up with same problem.
    so works until i release then goes back to inline with player, again i lose the value.

    any help appreciated ta!

    edit ** tried "set value event" but it wont switch off and carries on changing the value !!!!
    Share this post

  2. #2
    RaketeAal397's Avatar Member
    Join Date
    Mar 2014
    Location
    Hell
    Posts
    153
    hey

    the set value event should only change the value when it gets impulses so when you just send one impulse when you shoot it should send that position and the value that was affected should have that value.. i'm not shire can't test it right now.. where does your set value event get it's impulse from?
    Share this post

  3. #3
    i have a delay impulse.
    and yes thats what i thought to.
    i had some partial success. but it wont hold the value.
    switched off the impulse and the set value carried on sending values.
    think im still getting an impulse from somewhere or it just carries on. or i forgot to switch off the impulse.

    i was hoping there might have been a simpler solution.

    cheers for the help.

    **SOLVED**

    I had turned off the impulses but also the "interval trigger" impulse as that was connected. to make it work.
    so the value held but the bullet didn't move cos no more impulses.
    i separated the "interval trigger" from the rest so it could still
    move the bullet but not trigger the set value again. just goes directly to the ope.
    and i turn off the delay impulse.

    thanks again , that helped me focus on the impulses ty.
    Share this post

  4. #4
    RaketeAal397's Avatar Member
    Join Date
    Mar 2014
    Location
    Hell
    Posts
    153
    hm then i don't know
    eventually there is another way if you use an emitter but i think that will be physics based and not that exact and i can't tell how to set it up
    maybe i'll try when i'm on xbox again can't help now
    Share this post