This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk

Forum rules

Search found 18 matches

by kirill240
Thu Jul 18, 2019 10:10 pm
Forum: Answered ScriptAPI Topics
Topic: Cannot get UniqueID from Dedicated Server
Replies: 4
Views: 21350

Re: Cannot get UniqueID from Dedicated Server

Closer inspection reveals that the GetSharedStorage("") seem to always return empty storages as the code to load the data for shared storages runs in the wrong context which makes File.Exists always return false - no crash, no nothing. Just a silent "nope - file does not exist here!". Will be fixed...
by kirill240
Thu Jul 18, 2019 7:20 pm
Forum: Answered ScriptAPI Topics
Topic: Cannot get UniqueID from Dedicated Server
Replies: 4
Views: 21350

Re: Cannot get UniqueID from Dedicated Server

UniqueID is just the user's current instance ID, which will be different for each connection made. There's no property to read the AccountID yet for what I can tell (will most likely add it to the next update). GetSharedStorage returns null if the provided storage name is invalid. The name must onl...
by kirill240
Thu Jul 18, 2019 9:38 am
Forum: Answered ScriptAPI Topics
Topic: Cannot get UniqueID from Dedicated Server
Replies: 4
Views: 21350

Cannot get UniqueID from Dedicated Server

How to get a unique ID that I see in Dedicated server, for example, S98621949 via script api? UserID and UniqueID give a different number :( How can I distinguish people not by their names and ip, but therefore their identification number. Example Update: GetSharedStorage returns empty storage but i...
by kirill240
Wed Jul 03, 2019 10:06 am
Forum: Answered ScriptAPI Topics
Topic: SetStatsToKeep not works for me
Replies: 2
Views: 19192

SetStatsToKeep not works for me

SetStatsToKeep not working :(
I'm trying StatsToKeepEnabled = true, no changes.
After the gameover, the map is reloaded. And weapons, life is not saved. How to make it works?
And why i can create weapon class with custom Ammo, but can't assign or give it to player?
by kirill240
Sun Jul 23, 2017 12:17 pm
Forum: Answered ScriptAPI Topics
Topic: A way to skip parameters in method
Replies: 4
Views: 5101

Re: A way to skip parameters in method

jamisco wrote:
Thu Jul 20, 2017 4:09 am
i see, so how would you by pass target object id
If the TargetObjectID command does not affect the result of execution, then write any (better than 0) or use null
by kirill240
Fri Jul 14, 2017 7:58 pm
Forum: Answered ScriptAPI Topics
Topic: Can I Get A Flying Script?
Replies: 2
Views: 3503

Re: Can I Get A Flying Script?

You can order this script. Hardly anyone will find a similar script
by kirill240
Wed Jul 05, 2017 8:29 am
Forum: Superfighters Deluxe
Topic: Countries (IMPORTANT)
Replies: 11
Views: 9043

Re: Countries (IMPORTANT)

Alias: kirill240 (Mr. A woman's heart)
Country: Russia, Volgograd
by kirill240
Tue Jul 04, 2017 9:45 pm
Forum: Answered ScriptAPI Topics
Topic: How to make a command repeat
Replies: 7
Views: 6241

Re: How to make a command repeat

public void repeat(TriggerArgs arg){ if (player.isDead != true) player.AddCommand(new PlayerCommand(PlayerCommandType.AttackOnce)); } Then you have to make this executed by a trigger by adding the method name in the method property of the trigger, but since you have declare an IPlayer named "player...
by kirill240
Fri Jun 30, 2017 3:56 pm
Forum: Solved Bugs
Topic: Typo in the ScriptAPI example section for PlayerDeathCallback
Replies: 1
Views: 2206

Typo in the ScriptAPI example section for PlayerDeathCallback

Typo in the ScriptAPI example section for PlayerDeathCallback
Picture: https://pasteboard.co/3pjXfvBTO.png
by kirill240
Thu Jun 29, 2017 4:20 pm
Forum: Answered ScriptAPI Topics
Topic: Object references not set to an instance of an object
Replies: 11
Views: 10323

Re: Object references not set to an instance of an object

jamisco wrote:
Thu Jun 29, 2017 4:15 pm
kirill240 wrote:
Thu Jun 29, 2017 12:31 pm
jamisco, Do you have a Skype or discord or Telegram or other? I could help you correct all the mistakes so as not to clog the topic and make the code more adequate and beautiful.
Yea, just go on discord and look up jamisco
Your name should be of this type: Nickname # 0000 in discord
by kirill240
Thu Jun 29, 2017 12:31 pm
Forum: Answered ScriptAPI Topics
Topic: Object references not set to an instance of an object
Replies: 11
Views: 10323

Re: Object references not set to an instance of an object

jamisco, Do you have a Skype or discord or Telegram or other? I could help you correct all the mistakes so as not to clog the topic and make the code more adequate and beautiful.
by kirill240
Thu Jun 29, 2017 12:19 pm
Forum: Answered ScriptAPI Topics
Topic: Object references not set to an instance of an object
Replies: 11
Views: 10323

Re: Object references not set to an instance of an object

Sorry, if my answer contains too many characters, I get an error sending an answer.
by kirill240
Thu Jun 29, 2017 12:16 pm
Forum: Answered ScriptAPI Topics
Topic: Object references not set to an instance of an object
Replies: 11
Views: 10323

Re: Object references not set to an instance of an object

The point is that you are trying to get an IPlayer from the PlayerSpawnTrigger object. So this thing does not work. I learned this with the help of this pacing: IObject Gunner_ID = Game.GetSingleObjectByCustomID("The_Gunner");IPlayer TheGunner = Game.GetPlayer(Gunner_ID.UniqueId);if (TheGunner == nu...
by kirill240
Thu Jun 29, 2017 12:15 pm
Forum: Answered ScriptAPI Topics
Topic: Object references not set to an instance of an object
Replies: 11
Views: 10323

Re: Object references not set to an instance of an object

Replace the first lines with this:

Code: Select all

IObjectPlayerSpawnTrigger Gunner_ID = Game.GetSingleObjectByCustomID("The_Gunner") as IObjectPlayerSpawnTrigger;
IPlayer TheGunner = Gunner_ID.CreatePlayer();
by kirill240
Thu Jun 29, 2017 12:13 pm
Forum: Answered ScriptAPI Topics
Topic: New "Thread"
Replies: 10
Views: 9074

Re: New "Thread"

I tried backgroundworker and it works How can it be possible? because all the namespaces available do not allow us to use background operations and so to open threads, can you explain better? system.componentmodel.backgroundworker worker = new system.componentmodel.backgroundworker(); //Other code ...
by kirill240
Thu Jun 29, 2017 11:01 am
Forum: Answered ScriptAPI Topics
Topic: New "Thread"
Replies: 10
Views: 9074

Re: New "Thread"

I tried backgroundworker and it works
by kirill240
Tue Jun 27, 2017 10:45 pm
Forum: Answered ScriptAPI Topics
Topic: New "Thread"
Replies: 10
Views: 9074

New "Thread"

Hey guys. Very long time I wrote DM. When the player died, I created a timer, so he was resurrected after a certain period of time. It's pretty convenient. 1) And now I have a question, how do I better organize several threads, through timers or use the Thread class? 2) There is one more problem rel...