Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

having no success changing the player-movement speed in IW5M

Featured Replies

Опубликовано:

entity.Call("setmovespeedscale", new Parameter((float)X));

Make sure to use an OnInterval because every object you climb/vault will reset.

^ x = 1 - XXX.

 

-For future refrenece look at ScriptNames in the InfinityScript source there you will find everything you can use.

Опубликовано:
  • Автор

ok.

i have that and i ran it.

but it gave me the DBNetwork.Indigo.dll and the DBNetwork.Indigo.log.

am i supposed to extract the source code from one of these?

if so, i don't know how to do that yet...

Опубликовано:
  • Автор

another question.

if i wanted to run one or more of the sample scripts on my server how would i do that?

does a plugin folder need to be created or perhaps a folder by another name where the scripts i want to run would be placed?

 

np Quint, i'll just edit from now on.

sure don't wanna look like a faggot

 

**EDIT: DidUknowiPwn, i wrote this using the code you gave me.

got no errors and the build was successful. now i have the dll.

where do i put the dll?

 

Source Code:

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace Speed

{

public abstract class Speed

{

}

}

 

/*OnInterval("setmovespeedscale"

{

entity.Call("setmovespeedscale", new Parameter((float)X));

* ^ x = 30 - XXX

});*/

 

 

================

 

 

**EDIT#2: i'm pretty sure the dll i made should go in the scripts folder.

i put it there, then stopped and started the server. the dll didn't work. i'm sure my code is not correct.

can someone help me with the code i wrote?

Опубликовано:
  • Автор

DidUknowiPwn, thank you for responding.

i made the changes you gave me and i raised the float value a couple of times but the speed didn't change.

 

here's my code:

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace Speed

{

public abstract class Speed

{

}

}

 

/*OnInterval(100, () =>

{

entity.Call("setmovespeedscale", new Parameter((float)4.6));

return true;

});*/

Опубликовано:
DidUknowiPwn, thank you for responding.

i made the changes you gave me and i raised the float value a couple of times but the speed didn't change.

 

here's my code:

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace Speed

{

public abstract class Speed

{

}

}

 

/*OnInterval(100, () =>

{

entity.Call("setmovespeedscale", new Parameter((float)4.6));

return true;

});*/

I may be wrong but the /* and */ comment out the code to change the speed.

Опубликовано:
JoeyB":327csos4]

});*/

I may be wrong but the /* and */ comment out the code to change the speed.

Yes...

Also you have to add using InfinityScript; in the top for it to use the actual InfinityScript make sure to also reference the .dll

Опубликовано:
  • Автор

i wondered about those comment marks too.

i removed them.

added InfinityScript.dll to references.

added "using InfinityScript;"

 

not sure where "OnPlayerSpawn" should go.

 

still no change in the speed.

 

here's my code:

 

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

using InfinityScript;

 

 

namespace Speed

{

public class Speed : BaseScript

{

public Speed()

: base()

{

PlayerConnected += new Action(entity =>

{

 

OnInterval(100, () =>

{

entity.Call("setmovespeedscale", new Parameter((float)400.6));

return true;

});

});

}

}

}

  • 1 month later...
Опубликовано:
Hi,

 

I just read this and i was wondering if you included your script into the dsr-File?

Like loadScript "YourScript.dll".

 

I just had that idea while reading the topic...

 

Greetings.

If you have no idea how to loads mods into a server. Then check the mods section again.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.