Contributor ajz3d Posted February 14, 2014 Contributor Report Share Posted February 14, 2014 Hello guys. I'm kind of stuck writing my script because of the two things below. I'd be grateful if someone (Andrew perhaps?) could answer them. What's the best way of retrieving a chosen path from Save Dialog and passing it to some other automated Save Dialogs later in the script? I suspect this could have something to do with string GetFilePath( string &in s), but SaveDialog returns a boolean, not a string, so I have no clue how to pass the path from it to GetFilePath function. Documentation provides no information about file path management routines. Are there any C++'s integer/floating point randomisation functions in AngelScript? Quote Link to comment Share on other sites More sharing options...
Contributor ajz3d Posted February 16, 2014 Author Contributor Report Share Posted February 16, 2014 Anyone? Quote Link to comment Share on other sites More sharing options...
Carlosan Posted February 16, 2014 Report Share Posted February 16, 2014 I suggest to send the question to Andrew Shpagin atsupport@3d-coat.com Quote Link to comment Share on other sites More sharing options...
Contributor ajz3d Posted February 17, 2014 Author Contributor Report Share Posted February 17, 2014 Okay Carlos. This sounds like a good idea. Quote Link to comment Share on other sites More sharing options...
Carlosan Posted August 14, 2014 Report Share Posted August 14, 2014 Yes, here is Andrew's answer: 1. Use bool OpenDialog(string &in extensions,string &out result) result will be in "result". 2. Yes, read general AngelScript math doc - http://angelcode.com/angelscript/sdk/docs/manual/doc_addon_math.html Random numbers may be generated with int rand(int min,int max); float randF(float min,float max); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.