BandaStation - Modules - Types

immerse

var/mob/client_mob = friend_candidate_client.mob
	if(isliving(client_mob))
		client_mob.ghostize()

	var/mob/eye/imaginary_friend/friend_mob = client_mob.change_mob_type(
		new_type = /mob/eye/imaginary_friend,
		location = get_turf(client_mob),
		delete_old_mob = TRUE,
	)
	friend_mob.attach_to_owner(target)
	friend_mob.setup_appearance(random_appearance ? null : friend_candidate_client.prefs)

#undef CHOICE_RANDOM_APPEARANCE #undef CHOICE_PREFS_APPEARANCE "Fully immerses" the player, making them manually breathe and blink