Jump to content

Recommended Posts

Posted

We can retrieve an .@var array in a function with .@var[0] in argument? I though we couldn't

I am not sure, whether I have understood you correctly.

I think you mean that it is not possible to directly pass a NPC variable array to a function and then use it in the function, right?

You can do this using copyarray:

copyarray .@Array$[ 0 ], getarg( 0 ), getarraysize( getarg( 0 ) );
If you pass a NPC variable, it will also be copied into .@Array$. That worked when I tested it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...