Search found 1 match

by TopDole
Thu Dec 04, 2014 4:39 am
Forum: General
Topic: How do i define multiple variables at once?
Replies: 7
Views: 5927

How do i define multiple variables at once?

I read most of the lua book a while back and have been coding for quite a while but i havent found out how to define multiple variables yet. Does anyone know? Is it even possible?

A couple things I tried that I wish worked:

P1.x, P2.x, P3.x, P4.x = 0
P1.x = P2.x = P3.x = P4.x = 0