It’s like this:
-
You’re holding the log
-
You walk up to the log pile
-
You press the key to drop the log
-
When you press that key do a line trace and find the log pile
-
Send a message to the log pile using the interface that says “Hey, I’m dropping a log here” ( and give the reference to the log actor )
-
The log pile understands it’s a log and spawns a new log in the log pile and deletes the actor
-
If you have tried to drop a log on something that was not a log pile ( but did implement the interface ), it would see the object type was wrong and do nothing…