AggrorJorn Posted July 3, 2013 Share Posted July 3, 2013 The first option in a choice property does not work. It does work when you set the property to another value in the dropdown list and then setting it back to the first . Attach the following script to an entity: Script.myChoice = "" --choice Test "FirstChoice, SecondChoice" function Script:Start() if self.myChoice == 0 then System:Print("-----------------first choice----------") elseif self.myChoice == 1 then System:Print("-------------second choice----------") end end Link to comment Share on other sites More sharing options...
beo6 Posted July 3, 2013 Share Posted July 3, 2013 As in my other Post: try this: Script.myChoice = 0--choice "Test" "FirstChoice,SecondChoice" 1 Link to comment Share on other sites More sharing options...
AggrorJorn Posted July 3, 2013 Author Share Posted July 3, 2013 Thanks for posting. Topic can be locked. Link to comment Share on other sites More sharing options...
Recommended Posts