Jump to content
Sign in to follow this  
Mozzak

Making a civillian follow me when I get close to him(Like mission 1,campaign)

Recommended Posts

I pretty much said everything in the title.

How do I do that?

I am making a civilian rescue mission,or at least trying to.

Share this post


Link to post
Share on other sites

Try the search for this section before posting. That's begin describe a ton of different ways. Here's the easiest way I know to do it:

http://forums.bistudio.com/showthread.php?t=82924&highlight=join+group

There's also a way to get them to follow. I think it's:

unit doFollow player

To do it on the map:

Create a trigger with a 50x50 area. Set it to Present. In the OnAct line put:

unit1 doFollow player;

Now click on the group tab and group the player to that trigger.

Put a unit named "unit1" on the map and inside the trigger.

That's it. The unit named "unit1" should follow the player once the player enters the trigger area.

If you want him to join the group, that way you can at least guide him a bit better and control his behavior better, just swap in the join code above where the doFollow code is in the trigger.

Edited by Manzilla

Share this post


Link to post
Share on other sites

Awesome,thanks.

Yeah...just didn't assume anyone asked that kind of a stupid question

Share this post


Link to post
Share on other sites

S*$t, I've been around here in one form or another since the OFP release and I still ask ridiculous questions. ;)

I had to ask for help on this exact thing about 6 months ago. :)

Enjoy and welcome.

Share this post


Link to post
Share on other sites

Tried

unit leave player; ?

I mean it's logical,but Idk...

Share this post


Link to post
Share on other sites

This method is my prefered method for doing these kind of things. By using the Condition field below the unit can move around and you can get within 5 meters of him at any point and he will join you. With the other method you have to enter into the trigger area and if for some reason he is 10 miles away you will still rescue him. This way you have to be close to him.

Trigger Size: 0 x 0

Condition:

Player distance civilian<= 5

On Activation:

[civilian] join player

Note: I use join, I have never used dofollow but I will look into that.

To make him get out of the group

On Activation:

[civilian] join grpnull

Note: I think its grpnull, its something similar at least. I just used it yesterday but I can't look to see what I used right now. It will make him join no group and remove him from the group he is in.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×