PLS PLS PLS help?
by Robert Carroll · in Torque Game Builder · 09/19/2009 (11:04 pm) · 4 replies
How do I link to a website through a behavior.
About the author
Stay Up all night playing PS3 ;) add me PSN: RCBASEBALL13.
#2
09/21/2009 (11:26 pm)
Can I do this with the GenericButton?
#3
09/21/2009 (11:34 pm)
I tried the Generic Button and put in the feild OnClick.GotoWebPage("www.example.com") but it crashes TGB.
#4
09/22/2009 (1:24 pm)
I don't use behaviors in my code but I'm pretty sure that syntax is incorrect. I believe you'd want to create a function called something like StartMyWebPage() which has the gotoWebPage("www.somerandompage.com") and then set StartMyWebPage() as the method. I believe it also would work if you just put gotoWebPage in the method field and the website in the argument field.
Nate Gertsch