Home   Help Search Login Register  

Author Topic: problems after join and lead...  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline ONoSixIsDown

  • Members
  • *
problems after join and lead...
« on: 09 Jan 2006, 13:12:46 »
hey peeps, heres my dilema... I want the player to go through some wapoints and eventually join an AI unit and go through more way points.  the problem is that it seems that if the player controlled unit enters or exits any given vehicle before his join waypoint, the New commanding AI squad leader will order the player to enter what ever vehicle that he/she was in prior the joining. Also, they like to run halfway across the map to get to said vehicle and seemingly ignore their intended route.

anyone experience something like this before?
CRIMSON REIGN COMMING..... eventually :/

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:problems after join and lead...
« Reply #1 on: 09 Jan 2006, 13:22:29 »
Quote
I want the player to go through some wapoints
That's your first mistake right there.    ;D  Never use player waypoints:  they are merely a bonus for people who play Cadet mode because they don't know how much more fun it is to play in Veteran mode.     In Vet mode the player cannot see the waypoints so the mission is guaranteed to get screwed up.

Use a trigger to make the joining happen when the appropriate conditions are satisfied.  

If you have problems with the player previously being in vehicles then some unAssign commands might help.   It sounds like the AI is getting confused about who is in a wagon and whether they should be in it or not.
Plenty of reviewed ArmA missions for you to play

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Re:problems after join and lead...
« Reply #2 on: 09 Jan 2006, 20:56:44 »
Have to agree with Macguba. Using waypoints is a habit you should get out of straight away.
In veteran mode the player won't be able to see them and therefore will probably miss them and in cadet mode there's the big yellow box which obscures your view.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:problems after join and lead...
« Reply #3 on: 10 Jan 2006, 01:03:03 »
Waypoints? What are those?  ;D

Mkay, to build off of General MacGuba up there:

I belive the game engine works something similar to this. When a player enters a lorry, the lorry is entered into an array. This array means that the lorry is availible for any member of the player's group including himself. When you assign the player to another group, the lorry is still attached to the player, and therefore his group.

unassignVehicle is one way of doing it, but I have had some minor issues with it in the past. All unassignVehicle does is order the unit to disembark. That pointer from the lorry to the group still remains. This leads the game engine to believe that the unit should still be inside the jeep. Instead, try leaveVehicle. This unassigns the unit and any group members from the lorry, therefore there is almost no chance you will be ordered to re-embark.

The game engine stuff could be completely wrong. I'm not genius, and I'm not a programming nerd, so don't quote me on it. I would assume it probably works along those lines. But stick with group/object leaveVehicle lorry. That will do you better.
« Last Edit: 10 Jan 2006, 01:04:07 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline ONoSixIsDown

  • Members
  • *
Re:problems after join and lead...
« Reply #4 on: 10 Jan 2006, 01:37:04 »
alright, thanks guys, i'm sure that will do the trick...  

one question about the leaveVehicle command.... what would be the best way to utilize that? would i be better off having useing that command every time i disembark from a vehicle? or can i just have it used right before the join way points?
CRIMSON REIGN COMMING..... eventually :/

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:problems after join and lead...
« Reply #5 on: 10 Jan 2006, 12:58:52 »
As a rule, you dont' need it.   Here, use it just before the join commands to make sure all the loons are wagon-free.
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:problems after join and lead...
« Reply #6 on: 10 Jan 2006, 22:33:02 »
What Mac said.  ;)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08