#How can i send a tag via Script?

1 messages · Page 1 of 1 (latest)

sinful flame
#

Okay i thing this is relative simple but how can i do this:
On the first script:

Secondscript.Examplevoid(theTagOfTheObjectThatHasTheFirstScript);

On the second script:

public void Examplevoid()
{
if (theTagOfTheObjectThatHasTheFirstScript == b)
{
do sth with it
}
}

I just want to call the other objects void and send my tag over so that the other obejct can than do stuff with it
Pls somebody help thx

manic harbor
#

[Assuming a tag is a string]

public void ExampleVoid(string tag)
{
}