Jump to content
Xplorer4x4

XML Speed Value to Script?

Recommended Posts

you should check the: "wlfloadup.script" and wlfunload.script scripts(NL mod alpha) if not mistaken.

it has line to that like this:


//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//INFO:
//[ENG]: WLF.SetMaxPassengers(3); = Max units in the container truck (can change if you changed in editor)
//[ENG]: WLF.SetSpeed(9.0f); = Vehicle speed 9.0 is egal to 90
//[DE]: WLF.SetMaxPassengers(3); = Einheiten im container truck (kan man heir ander fals im editor geandert)
//[DE]: WLF.SetSpeed(9.0f); = Fahrzeug speed 9.0 is gleich an 90
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
WLF.SetMaxPassengers(3);
WLF.SetSpeed(9.0f);

int PlayerID = v.GetPlayerMP();
WLF.SetPlayerMP(PlayerID);

PersonList passengers = v.GetPassengers();
for(int i = 0; i < passengers.GetNumPersons(); i++)
{
v.RemovePassenger(&passengers.GetPerson(i));
WLF.AddPassenger(&passengers.GetPerson(i));
}

PersonList transports = c.GetTransports();
for(int i = 0; i < transports.GetNumPersons(); i++)
{
c.RemoveTransport(&transports.GetPerson(i));
WLF.AddTransport(&transports.GetPerson(i));
}

v.PushActionWait(ACTION_APPEND, 0.1f);
v.PushActionDeleteOwner(ACTION_NEWLIST);
c.PushActionDeleteOwner(ACTION_NEWLIST);
}
};

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...