I want D.Va’s nuke to kill her again. The conditions are currently, If using ultimate = true, and if in line of sight, event player and last created entity = true, wait 3 seconds, abort if false (because the nuke takes 3 seconds to go off) then kill event player. Am I doing something wrong?
Last created entity, as far as I know, is for workshop created effects and whatnot only, so if you want the mech to be recognized as last created entity, you have to recreate it or at least determine its position and use it for line of sight calculations
Ok, updated rule to be: contition is using ultimate = true, wait 3 seconds, (for the nuke to stop traveling and explode) set player variable A to local vector of last created entity, relative player being event player, and getting rotation and transformation to get a full location, and set player variable B to true. Another rule then says 2 conditions, if player variable = true, and if is in LOS, player variable A and event player, all barriers block LOS, kill event player, set player variable B to 0, and set player variable A to null. Still won’t work. And the location from last created entity is being recorded correctly, I added a rule that if player variable B = true, display player variable B as text. I also know that re-meching won’t work, but one thing at a time.
My explanation was bad, the game code is YWKHJ if you want to just see what I did
I checked but uh… again, last created entity only works for created entities inside of the workshop, you cannot assign an existing asset like dva’s bomb as last created entity, if you want to code this concept you have to recreate the whole skill from scratch basically
how? well… I’m not that versed with the workshop sadly and I’m currently working on something else so I cannot sit and try to figure this one out yet x_X sorry about that, my best guess is that you need to use the nearest walkable position as value and somehow create an impulse for a variable… which sounds pretty complicated
So to sum things up here, your logic is right but the parameters you’re trying to use don’t mean what you think they mean
Ah, gotcha. I’ll try and figure out a way to rebuild it from scratch. Thanks for the help!