I can't for the life of me figure out what I've done wrong here. Here's a part of the code.
The symbols are all there, but the problem lies where I assign lights 0-9 to the created thing - returns a -1, which leads me to believe I have the wrong layout for the create thing. Anyone?
------------------
May the forks be with you.
There is a great disturbance in my shorts...
Code:
for(i=0; i<10; i=i+1) { if(Ghost0 < 0) return; // return if the current ghost item is not used. if(Light0 > -1) { DestroyThing(Light0); Light0 = -1; } FocalSector = GetThingSector(FocalObject); GhostPos = GetThingPos(Ghost0); Light0 = CreateThingAtPos(LightObject, FocalSector, GhostPos, '0 0 0'); SetThingFlags(Light0, 0x1); SetThingLight(Light0, LightVal0, 0); if(Light0 == -1) PrintInt(i); } Return;
The symbols are all there, but the problem lies where I assign lights 0-9 to the created thing - returns a -1, which leads me to believe I have the wrong layout for the create thing. Anyone?
------------------
May the forks be with you.
There is a great disturbance in my shorts...