-
-
Notifications
You must be signed in to change notification settings - Fork 5
CheckFIDCollision
Anthony Headley edited this page Apr 19, 2020
·
2 revisions
Takes a Start FID and Count and returns True if there is no collision and False if there is.
Name | Description | Optional |
---|---|---|
int : Start | The Start FID that you would like to check | |
int : Count | The number of continuous FIDs to check against. |
True = There is no collision False = There is a collision
Patched Fixtures:
FID | Gird | Description |
---|---|---|
101 | 0/0/0 | Dimmer 1 |
102 | 1/0/0 | Dimmer 2 |
103 | 0/1/0 | Dimmer 3 |
104 | 1/1/0 | Dimmer 4 |
local startFID = 1
local count = 10
local x = CheckFIDCollision(startFID, count) -- x == True
startFID = 100
count = 10
x = CheckFIDCollision(startFID, count) -- x == False