Xplorer4x4 Posted December 23, 2010 Report Share Posted December 23, 2010 The speed value in the units.xml is obviously measured in a completely different unit then when speed is set via a script. Is there some way to put the speed value of 140 from a Unit.XML into the f measurement system used in scripts? Quote Link to comment Share on other sites More sharing options...
Tian318 Posted December 24, 2010 Report Share Posted December 24, 2010 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); }}; Quote Link to comment Share on other sites More sharing options...
Xplorer4x4 Posted December 25, 2010 Author Report Share Posted December 25, 2010 Thanks, exactly what I needed! Quote Link to comment Share on other sites More sharing options...
Tian318 Posted December 25, 2010 Report Share Posted December 25, 2010 Your welcome,Just be sure to also check the whole script.as the WLF is a cont. defined earlier in the script.Good luck.Merry X-mas Quote Link to comment Share on other sites More sharing options...