Hi guys i need some advice. it’s in first person the player is on a platform i need it to go to the front whenever the player uses the lever and if i use it again the platform stops and like that over and over… i don’t know what i’m doing wrong
You’re setting the isMoving
variable on the Lever but you never communicate with the Platform.
The GetAllActorsOfClass
node does not accomplish much here and is not needed. Instead, try:
- in the
lever BP
create a variable of platform object type - flag it as
Instance Editable
- in the scene, select the lever and choose which platform its variable should refer to
- when the lever is Interacted with, use the platform object variable to tell the platform what to do
well thank you for trying to help but unfortunately it’s still not working I don’t know what I’m doing wrong ? I updated the event graph photo as it looks now and ( in scene level I linked the lever to the platform using the dropper icon in details )
But you are still not communicating with the platform. Drag a wire off its reference and set its variable, not the lever’s. The lever does not even need it.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.