|
|
#1 |
![]() Join Date: May 2011
Reputation: 0
Posts: 10
|
How to make Combines run towards the player from across the map
I'm making a Garry's Mod map in which the objective is to survive a constant rush of Combine soldiers, who spawn on the other side of the max-size map.
What's the best way to make this happen? I've tried using the assault system, and that works remarkably well for the first Combine to spawn, but after a while they stop coming and go back to just loitering around their spawn (I think it's because they run out of rally points). Also, I need them to shoot at prop_physics. Could this be done with a npc_relationship entity, or do I have to use Gmod's lua_run to run custom AI code? |
|
|
|
|
|
#2 |
![]() Join Date: Apr 2011
Reputation: 0
Posts: 31
|
For the combine soldiers going after a player from across the map, create an aiscripted_schedule. set its name to whatever you want, set it to "Run to goal entity". Set the goal entity to !player, and target npc to npc_combine_s. After this, apply an output on your npc spawners:
Code:
OnSpawn <Your schedule name here> Startschecule |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|