![]() |
|
find.byModel wildcards - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: find.byModel wildcards (/thread-3199.html) |
find.byModel wildcards - Skeleton - 30-03-2020 Hello, Could you please make find.byModel function support wildcards ? Default native GMod function ents.FindByModel does according to the wiki. https://wiki.facepunch.com/gmod/ents.FindByModel Thank you, RE: find.byModel wildcards - The17thDoctor - 30-03-2020 Yes please RE: find.byModel wildcards - Person8880 - 30-03-2020 find.byModel is a direct binding to ents.FindByModel, so it supports whatever wildcard behaviour ents.FindByModel does (which apparently is none, despite what the wiki says). Adding wildcard support would mean basically re-implementing it, which is also possible at the Starfall level (though perhaps slightly slower). I don't have time to do that right now, but it shouldn't be too difficult to add when I do. RE: find.byModel wildcards - Skeleton - 30-03-2020 That's strange, find.byModel("models/cerus/modbridge/core/*", ai.filter) doesn't catch any props. RE: find.byModel wildcards - Person8880 - 02-04-2020 I've implemented wildcard matching to find.byModel() now which will be available after the next restart. It allows a single wildcard at the end of a model path, and should be much faster than it was before for exact model matches too. RE: find.byModel wildcards - The17thDoctor - 02-04-2020 (02-04-2020, 04:26 PM)Person8880 Wrote: I've implemented wildcard matching to find.byModel() now which will be available after the next restart. It allows a single wildcard at the end of a model path, and should be much faster than it was before for exact model matches too. <3 Thanks, finding corridors will be so much easier to do |