PlaceholderGames / 2021-yr1-Team-Rem

Second game for CS1S464 2020/21
0 stars 0 forks source link

Trying to shoot a trigger box #9

Open 30001606VA opened 3 years ago

30001606VA commented 3 years ago

I'm trying to make a trigger box that moves a block on the second parkour section, you would be able to shoot it so the block is made available to jump on, I'm having trouble at the moment finding a way to activate a trigger box by shooting it. What should happen when fixed is Cube11 should teleport to the location of TargetPoint3 when the projectile from the gun overlaps the trigger box. It works if you remove the cast to first person projectile and you walk into the trigger box, the difficulty being finding a way to get the trigger to activate when shooting it.

image

DoctorMikeReddy commented 3 years ago

I can see you’re identifying the projectile from its intersection with the trigger box, but not sure why you need to cast to the first person projectile, but not then use its reference. You want Cube11 to move to the TargetPoint3 when triggered? On which map and branch? Try getting that behaviour triggered by a timer or key press, to make sure it is correct, before trying to trigger with a projectile. Then try to trigger a debug text message with the projectile and trigger box. Just part of being methodical

30001606VA commented 3 years ago

I can trigger it by walking into the box if I remove the Cast, so it does work. I don't know how to grab the projectile reference, I tried copying the reference and pasting it in but it won't let me do that, so I don't exactly know how to link the cast to the projectile itself.

30001606VA commented 3 years ago

I found a way to reference the projectile, but even through this method I can't find a way to do this. I added a way to get to the end of the maze and will hold off on working on this for now.

image

DoctorMikeReddy commented 3 years ago

OK, I need a LOT of information to address this. Firstly, what is the location and what is the thing I need to shoot, to be able to try to trigger the effect? Where is the trigger box in what map? Screen shots would allow me to quickly locate this

30001606VA commented 3 years ago

The map the issue is located in is "FirstMap", located in "Content > FirstpersonBP > Maps". The trigger box that the player needs to shoot is located in the second parkour section of "FirstMap":

image

What should happen is when the player shoots the trigger box which is indicated by the white circle placed on the right wall, the platform slightly above and to the left of it should lower down to the target point:

image