Jump to content
lexx

Soldiers don't move into house via waypoint

Recommended Posts

Hey Folks,

 

since a while I have a bug that is driving me nuts... Got a group of soldiers that is supposed to move inside a house via a waypoint that I am creating in script. It always worked, but now, coming back after months of silence and a plenty dev-branch updates, it does not anymore, and it makes no sense to me.

 

This is the setup:

Spoiler

sP3ATtb.jpg

 

Here is the mission file:

https://www.file-upload.net/download-12568581/test_house_wp.altis.rar.html

 

It's simple, really. Walk into the trigger -> Soldiers get a waypoint created at the position of the AAF soldier. This in itself works, for as long as the AAF soldier is *not* inside the house. As soon as I move him back into the house, my people are unable to get to him. Tried the same with a generic marker, but no change.

 

Am I missing something here? A new bug? Did stuff change? Is there any workaround, any other way I can handle this?

Share this post


Link to post
Share on other sites

Alright, 41 views, no comment, not a single download. Guess I should have asked how to activate a trigger once a unit dies.

 

This is how I workarounded the problem:

_house = nearestObject [AAF_A_S2, "House"];
_wp = CSAT_GrpKamyshSquadGrp2 addWaypoint [ getPos _house, 5];
_wp setWaypointType "move";
_wp setWaypointBehaviour "AWARE";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointHousePosition 5;
_wp waypointAttachObject _house;

Basically, I am forcing them to walk inside to a specific position of the house. It still doesn't really work, as they stop right behind the door, no matter the house position, but oh well.. At least they get a little bit inside.

Wish it would still work like ever before-- just a waypoint in the house and they go there, but eh.

Share this post


Link to post
Share on other sites

Not 100% related to the actual problem in this thread, but... Have you registered this as a bug ticket in the feedback tracker? Devs may look into it... when their priorities allow.

Share this post


Link to post
Share on other sites

I don't even know if it's really a bug, or just something happening to me, or intended behavior now. Nobody else tried it, so..

Share this post


Link to post
Share on other sites

It would be nice if the file hosting website was google drive or dropbox. The one you are using is loaded with spyware...

 

And just upload the .pbo.  I would avoid posting a zipped file.  Anyone who can help you will have the ability to depbo it.

Share this post


Link to post
Share on other sites

It's not a but as far as you use a 5 m radius on the waypoint.

Why not trying :

_house = nearestObject [AAF_A_S2, "House"];
_wp = CSAT_GrpKamyshSquadGrp2 addWaypoint [ getPos _house, 0];
_wp waypointAttachObject _house;
_wp setWaypointType "move";
_wp setWaypointBehaviour "AWARE";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointHousePosition 5; // if this position exists

Share this post


Link to post
Share on other sites

sorry for dropping in on this tread.

 

@pierremgi the text you have written is that going in the WAYPOINT EXPRESSION -> ON ACT ?

I can't see it other places in the game but i can't get it to work with my AI units.

 

The map is UTES from CUP..

 

_house = nearestObject [ "House"];
_wp =  addWaypoint [ getPos _house, 0]; // the house is empty  
_wp waypointAttachObject _house;
_wp setWaypointType "move";
_wp setWaypointBehaviour "SAVE";
_wp setWaypointSpeed "NORMAL";
_wp setWaypointHousePosition 3; //   this position exists

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

×