Jump to content

ObjectName/Scripts/Buttons


This topic is 3101 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is there a way to use an If statement to determine what button was pressed and execute scripts?

I am trying to make a few different buttons and I would like them to use 1 script file and based on the buttons ObjectName it would run different results... 

Link to comment
Share on other sites

I am trying to make a few different buttons and I would like them to use 1 script file and based on the buttons ObjectName it would run different results... 

The solution is to use 1 script not based on the buttons ObjectName, but on the Script Parameter that you'll pass to the script.

Link to comment
Share on other sites

The solution is to use 1 script not based on the buttons ObjectName, but on the Script Parameter that you'll pass to the script.

Ah yes, thanks, got it working with this information. =)

Link to comment
Share on other sites

This topic is 3101 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.