EhOpranD
(EhOpranD)
1
I am creating a system to inspect objects, however, I would like to know how I can make the inspected object return to its original position
The events are as follows:
Start Inspect:
Stop inspection:
If anyone can help me, I would be grateful
PS: otherwise the whole system is working properly, I can go to the item, click, inspect and release
Auran131
(Auran13)
2
just cache its transform before you move it and then set transform on stop.
2 Likes
EhOpranD
(EhOpranD)
3
Can you explain to me how I do this?
Auran131
(Auran13)
4
at the beginning of start inspect, GetActorTransform and save to a variable.
on stop inspect get that variable and SetActorTransform. you can delete the relative location you have
2 Likes
EhOpranD
(EhOpranD)
5
It worked out!!!
I did exactly what you said, the only difference was adding a Detach From Actor at the end so that the object wouldn’t be stuck to the character
I’ll leave the solution here:
Start Inspect
Stop inspect
I DON’T EVEN KNOW HOW TO THANK YOU, SO HERE YOU GO… THANK YOU
2 Likes
system
(system)
Closed
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.