This thing flies, but it's a SEnt of course, just as an SNPC really is. I want it to fly around the level looking for players. Since air nodes are only available outside I would need to calculate a safe positions above the ground NodeGraph positions to fly.
For flying above ground points, maybe cutting the difference of an upward trace would give me a good enough location?
Idk if I would be able to use air nodes only if visible, though... if any of this is even possible!
[highlight]So here's the main question[/highlight]
[U][B]Is it possible to make a SEnt [I]REFERENCE [/I]the NodeGraph without moving like a ground NPC, and if so how?[/B][/U]
[editline]7th December 2013[/editline]
For that matter, how would I get the current node's position, and how would I make sure it doesn't just run around the same room?
I DO know the node objects themselves are just baked into the map as a node graph!
If you can't really get the position of the 'node' spot on the graph, then maybe you could get the position it wants to travel to?
Brandonj4 really does seem to hate me... I feel like he rates me dumb to keep others from wanting to help me. I doubt that really works all too well, but still...
shit, title error...
I currently have this thing flying around like a crazy bug. I want it to still fly LIKE that, but with directions that will help it explore around the map.
Actually, 10 times a second this thing checks, in a cheap way, which direction it would prefer to go. There were bugs at first, but they're gone (glitches). It currently works like a charm! except...
I just want it to be better at leaving rooms! I can't think of any better way to do this, but please let me know if there is a CHEAP method otherwise!
By adapting this code I could make a flying cockroach or bee or something if I had the right models. It would hop up, find a landing spot and fly as close as it could before hitting the ground because of gravity.
You may find the end product very interesting! The current behavior isn't too bad, it tends to wander about a little bit. I would love to have it wander a lot better, though!
Sorry, you need to Log In to post a reply to this thread.