Serginho Posted January 24, 2019 Report Share Posted January 24, 2019 Hey How I can change the speed, for example, of the coroners so they move slower. I have tried to midify the file campaignprogress.xml in all ways that I found in forums but I cuoldn´t. Can someone tell me step by step, basically, how to make the units walk instead of running? Thank you and sorry if I wrote something wrong, I had to use a bit of the Google translator to write this http://www.emergency-planet.com/uploads/emoticons/default_smile.png Quote Link to comment Share on other sites More sharing options...
itchboy Posted January 25, 2019 Report Share Posted January 25, 2019 In a campaign mission, you can make use of the SetUpgradeLevel function to change how fast a person moves. For that, you need to make custom command scripts to change the speed of a person. In freeplay mode, the person speed cannot be changed using the upgrade level. You need to use SetSpeed instead, but it causes problems with the animation. Quote Link to comment Share on other sites More sharing options...
Serginho Posted January 25, 2019 Author Report Share Posted January 25, 2019 Where I can found SetSpeed? Quote Link to comment Share on other sites More sharing options...
itchboy Posted January 25, 2019 Report Share Posted January 25, 2019 It cannot be found in any of the xml files. You must create a totally new command script to use the SetSpeed function. I am talking about making Em4 scripts btw. Quote Link to comment Share on other sites More sharing options...
Serginho Posted January 25, 2019 Author Report Share Posted January 25, 2019 Oh, I discard the plans in that case. Thanks Itchboy. Quote Link to comment Share on other sites More sharing options...
em4vs66 Posted February 10, 2019 Report Share Posted February 10, 2019 (edited) I like this mod. I think it's good. Edited February 10, 2019 by Pottyscotty Reduced font size Quote Link to comment Share on other sites More sharing options...
Serginho Posted May 29, 2019 Author Report Share Posted May 29, 2019 I do not give up, I keep trying to modify the speed of the units (not vehicles) in freeplay. I have found that in Italian Submod 1.2 and in Helping Peter 0.1, if you press a key (shift), the units can alternate between running or walking.I have changed the script "move" from the Italian Submod to the mod I use to test (based in LA mod) with minimal changes because they are very similar, I have changed it in the editor and everything and it does not work.I would also like to know if there is any way to make a person go slower when he picks up an object: axe, stretcher ... Thanks in advance http://www.emergency-planet.com/uploads/emoticons/default_smile.png italian submod MOVE.script Quote Link to comment Share on other sites More sharing options...
itchboy Posted May 30, 2019 Report Share Posted May 30, 2019 The walking logic does not work in regular freeplay. It only works in campaign mode. The reason is that the "upgradeLevel" code for changing between walking and running is overwritten in freeplay. There is no way for you to make the script work in a mod that isnt based on the Em4 campaign. There is also no way to make the person go slower when getting equipment, if you are in normal freeplay. You can make them go slower when in the Em4 campaign mode though. You can actually prove this theory. Use your modified move script, but play a campaign mission of Em4. You will notice that your units will indeed walk slower when carrying certain equipment. They will not do this in freeplay. Quote Link to comment Share on other sites More sharing options...
bma Posted May 30, 2019 Report Share Posted May 30, 2019 Itchboy is right http://www.emergency-planet.com/uploads/emoticons/default_smile.png For Helping Peter we used the upgradelevel, but it only works because the mod is campainbased, it will not work in freeplay http://www.emergency-planet.com/uploads/emoticons/default_smile.png Quote Link to comment Share on other sites More sharing options...
Serginho Posted May 30, 2019 Author Report Share Posted May 30, 2019 Sh*t... Thank you very much to both of you. I love the work you do with the mods. http://www.emergency-planet.com/uploads/emoticons/default_lach.gif Quote Link to comment Share on other sites More sharing options...