Actor same name as other actor

Based on Shaz's script call, but I didn't want to use variables so I came up with this:

Spoiler
$gameActors.actor(1).setName($gameActors.actor(3))

1 is actor 1, 3 is actor 3.

I want actor 3 to have the same name as actor 1, but actor 3 gets named "Object object" when I use the script call.

I don't want to use variables because the player will input the actor's name, which I want another actor to also have for later in the game.
You're setting one actor's name to the entire actor object of the other. Try setting it to $gameActors.actor(3).name() instead.
You're setting one actor's name to the entire actor object of the other. Try setting it to $gameActors.actor(3).name() instead.

Thank you, it worked!
if you want actor 3 to have actor 1 name, it should be writed like this:
$gameActors.actor(3).setName($gameActors.actor(1).name());

edit: Oh! Already answered..!
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/actor-same-name-as-other-actor.115944/