Jump to content

Passing a STRUCT to a function


Recommended Posts

Hi,

 

The creation kit Wiki is saying "Assigning one struct to another struct, or passing a struct to a function, is done just like any other variable."

 

But I can't get it to work.

 

I tried different wording but it I'm always getting the error: no viable alternative at input 'Struct'

I tried:
Function myFunction(Struct myStruct)
;Do things
EndFunction
I also tried:
Function myFunction(Struct[] myStruct)
;Do things
EndFunction
What I'm I missing ?
Edited by F4ll0uta
Link to comment
Share on other sites

  • Recently Browsing   0 members

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