Jump to content
Sign in to follow this  
scajolly

Generic error, getPosASL and array

Recommended Posts

Hi

Can you please help me out? I've a mission where in a lightbulb's init, I have

alight = [a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,r1,r2,r3,r4,r5,r6,r7,r8,r9,10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,r24,r25,r26,r27,r28,r29,r30,r31,r32];{_x setposasl [(getposasl _x select 0),(getposasl _x select 1),12.1]} foreach alight;

When starting the mission, it returns a generic expression error, # at the first getPosASL. Can you sort me out at all?

Thank you in advance.

Share this post


Link to post
Share on other sites

Hi... Do a3,a4,a5 etc actually exist?

Share this post


Link to post
Share on other sites
Wait, lightbulb? Is that a vanilla object?

No, these ones are from ASC's EU Lights.

http://www.armaholic.com/page.php?id=12076

They're pretty neat.

rwylc.jpg

---------- Post added at 10:08 AM ---------- Previous post was at 09:55 AM ----------

@Twirly: Yes

There are some empty spaces in your array... :eek:

Those are due to forum coding. There are no spaces in a17 and r14 in-game. The generic error was because r10 was written "10" - the problem is fixed and all is OK. Thank you for your replies. =)

Edited by SCAJolly

Share this post


Link to post
Share on other sites

I tested your code with the lightbulbs and have no error message. I still tried with 10 bulbs, so i guess you have a problem with an error in naming your lightbulbs. Seems that are some or one variable has no object...

:shrug:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×