Making an NPC move in unison with a physbox, in multiplayer

DaMaN

Newbie
Joined
Jan 19, 2005
Messages
405
Reaction score
0
OK, kind of a crazy request for ideas, but i'm trying to get a gunship NPC to move with a func_physbox. I've tried parenting path's to the physbox and making the npc follow the path, putting AI targets in, putting AI script targets in, etc.

Anyways, i was just wondering if anybody had any ideas on how to get the gunship NPC to either closely follow or be centered upon a physbox.

-DaMaN
 
Try a constraint or parenting the physbox to the gunship
 
Well... parenting the physbox to the gunship resulted in the physbox flying around near the gunship. Using constraints made the physbox stay in the same place as the gunship, but the physbox wouldn't move. At all. (which i need it to do :S)

I'll try a few more things, but keep those good ideas comming!

-DaMaN
 
CREMATOR666 said:
Why not make the gunship follow a set of path_tracks? :O

Because i need the gunship to go in any direction that the physbox does. Basically, i'm trying to get the gunship to follow, exactly or roughly, a certain physbox wherever it goes. Hence, having a set of path_tracks would have the gunship flying along the path_tracks and not following the physbox. (I have tried parenting the path_tracks to the physbox. Doesn't work)

-DaMaN
 
Yes, though without the AI. (Which i don't need anyways)
 
Well, you could probaly just have differnt areas that trigger a new path for the gunship. So everytime the physibox moved into an area, it would tell the gunship to move to the path_track or corner or whatever that corresponded to that area.

For example, youd have two rooms and when the physbox moved from one room to the other, the gunship's next target would be changed to the other room, and then the gunship would be triggered to move.

It wouldn't perfectly follow the box, but i'm guessing you need it to appear like its trying to protect or hunt the physics object, so it might be for the better that it move exactly to a specified location no matter where the box is in a certain room.

I dont really know if this can be done, but there must be a way similar to this.
 
Back
Top