I can't find anything on this. Basically I want to create a custom spawnflag on the brush entity, allowing for certain entities to only be affected. How would I do this?
http://wiki.garrysmod.com/page/ENTITY/KeyValue
Actually I found out how to do this right after posting this. ._.
Basically you have a table where the spawnflags you want (in this case, I have a trigger_portal_cleanser) in a table with their ids as the key.
https://files.facepunch.com/forum/upload/295351/b6c59642-28f1-417a-9a2c-68208a8e434c/image.png
Then, with Entity:KeyValue, you detect if the engine sets the spawnflag you want, and simply set the id in the value parameter to true.
https://files.facepunch.com/forum/upload/295351/5964d7c3-48db-47eb-b2cc-1a0893a50540/Capture.PNG
Hope this makes this more clear then linking to the wiki
Sorry, you need to Log In to post a reply to this thread.