shredded Posted August 26, 2015 Posted August 26, 2015 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...
Raybaudi Posted August 26, 2015 Posted August 26, 2015 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.
comment Posted August 26, 2015 Posted August 26, 2015 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... What exactly is entailed in "run different results... "?
shredded Posted August 27, 2015 Author Posted August 27, 2015 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. =)
Recommended Posts
This topic is 3375 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 accountSign in
Already have an account? Sign in here.
Sign In Now