Page 1 of 1

"Class" Result is nil???

Posted: Sun Apr 13, 2025 8:29 pm
by vettim89
I know this is such a simple and stupid question but I cannot figure it out

When I run the following code in the console, it returns nil

Code: Select all

ship=ScenEdit_GetUnit({side='USSR', name='BPK Simferopol', guid='IE6M5H-0HNBL68LGL15D'})
print (ship.class)
If I print ship.name, it returns "SImferopol". Same for side, guid, etc. Am I using the wrong word for "class"

Re: "Class" Result is nil???

Posted: Sun Apr 13, 2025 9:44 pm
by Kushan04

Re: "Class" Result is nil???

Posted: Tue Apr 15, 2025 11:35 pm
by vettim89
Thanks. I knew the answer was simple :oops: