|
Post by sbdjazz on Feb 23, 2017 11:53:05 GMT
How does it work?
We need an example.
|
|
|
Post by GH Games on Feb 23, 2017 12:06:46 GMT
You want to start a script from the EventOnInput Object? You just link them together and set the Script Object to "Start on Input" or "Start on..." whatever you like. It works the same as the other Objects.
|
|
|
Post by sbdjazz on Feb 23, 2017 14:48:29 GMT
IDK Man but I tried that. Surprisingly, "Switch on Input" does work. Don't know but might be a bug.
|
|
|
Post by GH Games on Feb 23, 2017 15:46:38 GMT
Not a bug bro, I've used this loads of times. Here's an example project for you. The script is set to "Not working at start" and when you press the ENTER key the TextPrint's text changes to "Script Works" as it's told to in the Script. EOI_Script_example.3dr (110.47 KB)
|
|
|
Post by TinSoldier on Feb 23, 2017 16:45:27 GMT
also if you want it to work only once add
iScriptStop(); this makes the script a onetime run waiting to be triggered again.
|
|
|
Post by TinSoldier on Feb 23, 2017 16:47:31 GMT
If 3drad is acting up, try saving your project, close then reopen 3drad and try your project again..
I've seen this work for me, but no guarantee.
|
|
|
Post by sbdjazz on Feb 23, 2017 17:54:49 GMT
Does it make an issue with multiple scripts like 4 to 5 scripts? Any ways Tin's idea worked out. Thanks man!!!
|
|
|
Post by TinSoldier on Feb 23, 2017 22:35:05 GMT
if you mean the iScriptStop it only effects the script it is in.
|
|