Hey, I want to make square map (4x4 rooms) with moving object that randomly chooses its path (left, right, forward but no backward) every time it passes the doors. Is it possible without scripting? I was trying to do this with func_tracktrain and logic_cases with random MoveToPathNode outputs on path pass in CSGO but can't figure it out.
In the image below green indicates rooms and red indicates object's path
[IMG]http://images64.fotosik.pl/534/9afd25664cabbd3a.jpg[/IMG]
I would uses grid of path tracks. Then use a pick random output that chooses a random path on each fire of the path entity.
I've already tried that but it's not as easy as it seems.
I would use an approach like this: Two random generators control two tracktrains.
The first tracktrain controls the second tracktrain(x-movement) which controls the target (y-movement).
It should be pretty easy to do and allows you to control the motion more than with just a random target...
[img]https://dl.dropboxusercontent.com/u/36498915/PERMA/sb54w570.png[/img]
I actually made something like this before! I made a block that would randomly navigate a maze and it worked really well but the setup was probably the most complex thing I've ever done: [t]http://puu.sh/5NGSn[/t]
(super complex because it has to detect which walls are around it, then make a random choice based on that so it won't go through a wall. Also doesn't go backwards, so if it runs into a dead-end it resets.)
The way you want it done should be simple, I have 8 path tracks to go in each direction horizontally, a tracktrain, and a func_brush which is the visible object. The func_brush is parented to the tracktrain, which moves forward first, then the func_brush clears it's parent. The tracktrain is teleported to a new, randomly chosen path via logic_case and the func_brush has it's parent set to the tracktrain before it moves forward again.
[editline]fk[/editline]
Hell I could modify this a little and give it to you to use in the map, didn't read the OP too well before posting. You basically want what I made if I read it correctly the second time.
It's pretty amazing :v: Oh yeah, I would be very glad if you could make this for me. Thanks in advance.
If it's for CSGO you can cut down on a lot of the map entities by using vscripts instead.
Sorry, you need to Log In to post a reply to this thread.