how can i use send.message with 4 parameters ?

hi
i have a function with 4 parameter and , now i want to use send.message to that.
how can i ?

“playercontrol.js”

function OnAnimatorIK(weightForLHPosition:int ,weighForLHRotation:int , WeighforRHRotation:int )
{.....}

“hands.js”

function Update () {

	gameObject.SendMessage("OnAnimatorIK",1,SendMessageOptions.DontRequireReceiver);
	gameObject.SendMessage("OnAnimatorIK",1,SendMessageOptions.DontRequireReceiver);
	gameObject.SendMessage("OnAnimatorIK",1,SendMessageOptions.DontRequireReceiver);
	gameObject.SendMessage("OnAnimatorIK",1,SendMessageOptions.DontRequireReceiver);

You cannot.

Either call the function directly
getcomponent().OnAnimatorIK(a,b,c,d)
or construct and object that holds all 4 pieces of information (since it’s all ints, you would pass an int[ ] array)
int[ ] args = new int[ ] {a,b,c,d}
SendMessage(“OnAnimatorIK”, args)

if you can use c#, check this out: http://answers.unity3d.com/questions/585498/how-do-i-pass-data-to-a-function-in-another-script.html

and look at the pulse functions, not java though sorry.

script calling out

public outputCell linkOutputCell;  // this is the referance of script to send to
linkOutputCell.Pulse (pulseIntensity, callNamex, callNamey, callNamez); //to call function in the other script

function in other script

public void Pulse (float pulseIntensity, Vector3 callNamex, Vector3 callNamey, Vector3 callNamez);  //the function being called

im using unityjava

can i create new function like that and change Variables :

“playerControl.JS”

function AnimatorIK(wLHPosition : float, wLHRotation: float, wRHPostion : float , wRHRotation : float)
{
//left hand
	weightForLHPosition = wLHPosition;
	weighForLHRotation = wLHRotation;
//right hand
	weighforRHPostion = wRHPostion;
	weighforRHRotation = wRHRotation; 
}

“hand.JS”

function Update () {
		var arr : float[] ;
	arr[0] =1.0f;	arr[1] =1.0f; arr[2] =1.0f;	arr[3] =1.0f;
	gameObject.SendMessage("AnimatorIK",arr,SendMessageOptions.DontRequireReceiver);
...

Can’t you pass a struct?