Kanlaon Posted July 2, 2022 Posted July 2, 2022 Hello, Maybe some of the papyrus scripters knows that out of the box. Searching with google was not helpful. I want to build a command string for the console and want to store that in a string. As an example the command string for the console should look like this: Getini "fOverShoulderPosZ:Camera" This string can be executed in the console, while : Getini fOverShoulderPosZ:Camera leads to an error. so the definition in papyrus starts like: string sCmd = "Getini but how to put the doublequote itself now into the papyrus string ?? Regards
CaptainJ03 Posted July 2, 2022 Posted July 2, 2022 Dunno if it works with Papyrus, anywhere else you'd escape the quotes with a backslash. In your case I'd try string sCmd ="Getini \"fOverShoulderPosZ:Camera\"" (Maybe you need to escape the colon too.)
Kanlaon Posted July 2, 2022 Author Posted July 2, 2022 (edited) Ok, Thank you very much. It is possible to compile the script and the result is exactly how it should be I was more familar with Delphi, where string handling is different. But my question can be considered as solved now. Now some other problems ae waiting for me regarding the Fallout 4 Consoleutil.dll, where this command and some others are needed. Edited July 2, 2022 by Kanlaon
Recommended Posts
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