getting scripted marines to follow the player.
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- MasterOFDeath
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
getting scripted marines to follow the player.
Right now in Marine Combat im using path nodes to tell the marines where to go, but it does not want to work right and its making my TID's soar. Is there a way I can get them to follow the player? Thanks in advance.
- cyber-menace
- Posts: 186
- Joined: Thu Mar 18, 2004 12:05 pm
- Location: N/A
I'm not sure if this would work... but, maybe you could do something like this...
That way the marine's goal is the player and it would be given that goal every tic. That could cover following you, but if it's going to shoot stuff, you'll need to make the marine hate the enemies too.
Code: Select all
#include "zcommon.acs"
script 1 enter
{
thing_changetid (0, 666);
}
script 2 OPEN
{
Thing_SetGoal (MarTID, 666);
Delay (1);
restart;
}
- MasterOFDeath
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
Guess I will just have to use the Path Nodes for now it seems, until .64. I originally WAS going to do this with MBF, but then I would have to sacrifice monsters in DEHACKED to get marines, and it would be quite limited. Im Marine Combat right now, I have quite a few zdoom only effects. Guess I will have to live with the marines getting stuck in the wall for now...Graf Zahl wrote:cccp_leha wrote:Ha, I've got one for you: switch to MBF (or its reincarnation)! You can then use the helper dogs.
...or the upcoming friendly monsters from Strife...

- MasterOFDeath
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
- Macil
- Posts: 2529
- Joined: Mon Mar 22, 2004 7:00 pm
- Preferred Pronouns: He/Him
- Location: California, USA. Previously known as "Agent ME".
- Contact:
Oops. I wasn't thinking of that.
I just realized solution!!!!!!!!!!!!
Thing_Remove the patrol point after one second and then spawn another at the player's spot WITH THE SAME TID!
It's so simple but such a powerful realization. We can now create things that follow things (like player) without them hating!!
I just realized solution!!!!!!!!!!!!
Thing_Remove the patrol point after one second and then spawn another at the player's spot WITH THE SAME TID!
It's so simple but such a powerful realization. We can now create things that follow things (like player) without them hating!!