I'm trying to make a static brush dissapear after using an Item on it,...in this case the static brush is a door with the ID 102 and the item is a key
I'm using a hidden dynamic as an activator.
This is the line of code that's causing me nightmares :
BrushSet(BrushFind(102),B_DRAW,0);
I can tell you that everything works as intended apart from one minor detail,....the door was origonally "Material block" and when I use the key on the activator, the door does in fact dissapear from view...but only in image, the material is left behind.
So in effect the door is turned into an invisible block.
It was my understanding that DRAW,0 was status none. DRAW,1 is image only, DRAW,3 is material only and DRAW,4 is Image and material.
I tried adding an extra line identical to the above using "B_MATERIAL,0" instead of "B_DRAW"
That just resulted in an error.....anyone know what I'm doing wrong?
[EDIT]
Actually I figured it out...I forgot to add this at the end of the script
GameCommand(CMD_REFRESH);
Was gonna delete this post to avoid spamming the board since I no longer need it, but I guess only moderators can do that /shrug