Re: Declaring the contents of an array in a function call, bgt.

2019-09-10 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. This worked, thank you! URL: https://forum.audiogames.net/post/460837/#p460837 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: Declaring the contents of an array in a function call, bgt.

2019-09-10 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Nope, it cannot be used interchangeably, but this code I posted earlier is the only way to pass arrays of data over to a function without declaring a variable to do so first. You cannot declare a variable this way, you'd

Re: Declaring the contents of an array in a function call, bgt.

2019-09-09 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Aha, I did not know about this one. Sorry for overcomplicating it then. Lol URL: https://forum.audiogames.net/post/460692/#p460692 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Declaring the contents of an array in a function call, bgt.

2019-09-09 Thread AudioGames . net Forum — Developers room : bgt lover via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. So, if I understand you correctly, array foo is the same as int[] foo and can be used interchangeably? URL: https://forum.audiogames.net/post/460668/#p460668 -- Audiogames-reflector mailing list Audiogames-reflector

Re: Declaring the contents of an array in a function call, bgt.

2019-09-09 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Nope, that shouldn't be a problem either.Best Regards.Hijacker URL: https://forum.audiogames.net/post/460649/#p460649 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabah

Re: Declaring the contents of an array in a function call, bgt.

2019-09-09 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. @6 thanks! I will try that when I get home!Does it matter that I declared the messages array in the dialogue function? URL: https://forum.audiogames.net/post/460643/#p460643 -- Audiogames-reflector mailing list

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. It isn't undocumented, its just not in the BGT documentation, because its one of the hidden features of AngelScript. Just use it as follows:dialogue(array = {"Hey, are you there?", "Yeah... what is it?

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. There's apparently an undocumented way to create arrays without the need for an explicit temp variable. (It's the same under the hood, I suppose.) I don't remember the syntax off the top of my head; array(args

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Either update the array or create it, depending on how you set it up. URL: https://forum.audiogames.net/post/460561/#p460561 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. So any time I wanted to call a dialogue function, I'd first have to update that dialogue array, and then call the function? URL: https://forum.audiogames.net/post/460556/#p460556 -- Audiogames-reflector mailing

Re: Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : masonian via Audiogames-reflector
Re: Declaring the contents of an array in a function call, bgt. Declare a temp array like sostring[] dialogues={"Hi","This is a test."};then call itdialogue(dialogues,"a stupid title",1000); URL: https://forum.audiogames.net/post/460525/#p460525 -- Aud

Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Declaring the contents of an array in a function call, bgt. I have a function, that takes messages that you give it and then goes through a for loop of them and makes them display. Here's the code:void dialogue(string[] messages, string title, int pausetime) { for(int i=0; iNow how wo

Declaring the contents of an array in a function call, bgt.

2019-09-08 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Declaring the contents of an array in a function call, bgt. I have a function, that takes messages that you give it and then goes through a for loop of them and makes them display. Here's the code:void dialogue(string[] messages, string title, int pausetime) { for(int i=0; iNow how wo