#Instead of GetOrigin here, as you have
1 messages · Page 1 of 1 (latest)
This results in the same output. No humans detected.
Lots of vests etc equipped to those humans though frustratingly.
Can you try with characters spawned from GM?
Okie dokie.
It does the same thing, but detects more. So more vests, heads, rifles etc. It scales with the number of people I spawn in.
Going to copy in a link to the original post: #enfusion_scripting message
So we have the context going forward.
try adding queryFlags : (EQueryEntitiesFlags.DYNAMIC | EQueryEntitiesFlags.NO_PROXIES) to the query
That removes all the vests etc. (Still getting the equipment strewn on the floor like the RPGs, which is fine.) Most importantly, still no players. Do you think it is to do with the script running in a subclass of MuzzleEffectComponent?
No
Use TracePosition instead I guess
Weird though
I would guess, perhaps you made Characters non traceable by modifying them by accident
Go to the Entity props in world editor of the characters
See if the traceable flag is enabled for example
Or check if you disable such things from your own scripts
Or mess with physical interaction flags on them
Could you share your script files?
I'm just walking the dog so I'll sift through that when I am back and provide the add-on source files. Where would I find the traceable flag?
They are definitely still traceable. I've attached a zip file of my addon if you would please have a look. Thank you for your help so far, Mario.
This is your problem
That is the same as this
Do not miss the {} scopes
That works for me
idk how I did not notice it from this #enfusion_scripting message
@quiet temple
LEGEND!
What a boss. I think the wiki might need updating as there is a section on "Do's and Don'ts" that recommended I remove the scope braces.
@buoyant night thank you so much!
Just tried it and it works on my end.
when the content is one expression
It's the same as without scopes
but in your case you had more than two expressions
So, the second one was out