The function is suppose to make
an object fall once my fps character lands on the object.
I actually had the same function working, but they i had to do
something, and im not able to get it working again. Im sure its something
simple but i feel like i tried everything now to get it back.
gameObject.name refers to the name of the gameobject on which this script is placed, not the object that collided with it.
To get that information you need to change your "function" line so that it provides a named parameter, which gets filled with information about the collision whenever a collision occurs, like this:
function OnCollisionEnter( col : Collision ) {
Then, you can read information about the collision by examining the properties of the "col" variable:
Debug.Log(col.gameObject.name + " collided with me!");
For a list of the other properties of the collision that are available to you, see the Collision manual page.