Home   Help Search Login Register  

Author Topic: Spawned F35s with pilots crash to the ground on dedi. [SOLVED]  (Read 1300 times)

0 Members and 1 Guest are viewing this topic.

Offline laggy

  • Members
  • *
  • "Behold a pale horse"
EDIT: The script needs to be run on the server, then it works great.
Think the group was not recognized by the client who ran the script before.

Trigger:

Condition: casstarted AND player == leader heroes
OnActivation: onMapSingleClick """casmark"" setMarkerPosLocal _pos; [] exec ""cas.sqs""; trgselected = true; publicVariable ""trgselected"""

casgroup is a group that has been initiated by a unit placed in editor with init like this:

casgroup = group this; deleteVehicle this

cas.sqs
Code: [Select]
casplane1 = createVehicle ["F35B", [(getmarkerpos "casmark" select 0), (getmarkerpos "casmark" select 1) - 3000, 100], [], 0, "FLY"];
casplane2 = createVehicle ["F35B", [(getmarkerpos "casmark" select 0) - 100, (getmarkerpos "casmark" select 1) - 3100, 100], [], 0, "FLY"];

caspilot1 = casgroup createUnit ["USMC_Soldier_Pilot",[0,0,30], [], 0, "FORM"]; caspilot1 moveInDriver casplane1
caspilot2 =  casgroup createUnit ["USMC_Soldier_Pilot",[0,0,30], [], 0, "FORM"]; caspilot2 moveInDriver casplane2

casgroup selectLeader caspilot1

_wp0 = casgroup addWaypoint [getmarkerpos "casmark", 0];
[casgroup, 1] setWaypointStatements ["true", ""];
[casgroup, 1] setWaypointTimeout [0, 0, 0];
[casgroup, 1] setWaypointBehaviour "AWARE";
[casgroup, 1] setWaypointCombatMode "BLUE"
[casgroup, 1] showWaypoint "NEVER";
[casgroup, 1] setWaypointSpeed "NORMAL";
[casgroup, 1] setWaypointType "MOVE";

_wp1 = casgroup addWaypoint [getmarkerpos "casmark", 0];
[casgroup, 2] setWaypointStatements ["true", ""];
[casgroup, 2] setWaypointTimeout [0, 0, 0];
[casgroup, 2] setWaypointBehaviour "AWARE";
[casgroup, 2] setWaypointCombatMode "YELLOW"
[casgroup, 2] showWaypoint "NEVER";
[casgroup, 2] setWaypointSpeed "NORMAL";
[casgroup, 2] setWaypointType "SAD";

_wp2 = casgroup addWaypoint [[0,0,0], 0];
[casgroup, 3] setWaypointStatements ["true", ""];
[casgroup, 3] setWaypointTimeout [0, 0, 0];
[casgroup, 3] setWaypointBehaviour "AWARE";
[casgroup, 3] setWaypointCombatMode "YELLOW"
[casgroup, 3] showWaypoint "NEVER";
[casgroup, 3] setWaypointSpeed "NORMAL";
[casgroup, 3] setWaypointType "MOVE";

They fly perfectly in editor, but on a dedi they crash to the ground, just as if there is no pilot.

Grateful for advice,

Laggy
« Last Edit: 31 Jan 2010, 02:26:48 by laggy »
And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.