CheckFIDCollision - hossimo/GMA3Plugins GitHub Wiki
CheckFIDCollision(int:FID Start, int: Count) : bool
Brief:
Takes a Start FID and Count and returns True if there is no collision and False if there is.
Paramiters:
| Name | Description | Optional |
|---|---|---|
| int : Start | The Start FID that you would like to check | |
| int : Count | The number of continuous FIDs to check against. |
Returns:
True = There is no collision False = There is a collision
Examples:
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