What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

remote mines

WhereIsMyMind

Member
Joined
Oct 12, 2013
Messages
848
Reaction score
5
Hi,

How to check that there is a mine available to detonate (smoke mine).
The GUI gives the 'D' key, in my case/bindings, to detonate a primed mine.
How would I script that? Just looking for detection of primed mine and detonation of mine.

WIMM
 
answered:
Loki.Game.GameData.ActionKey.DetonateMines

but what the hell is this?
Loki.Game.GameData.ActionKey.SmokeMineSpawnXSnakesOnTeleport { get; }

WIMM
 
Last edited:
SmokeMineSpawnXSnakesOnTeleport is a stat, not a part of ActionKey. They are both enums, though, so perhaps your Visual Studio got a type confused. As for what it is, I don't know. There's a ton of stats that are just there, and most likely unused or were for testing.

Input.DetonateMines() is just a convenience function for Input.PressActionKey(ActionKey.DetonateMines), so you can use either as needed. ExampleRoutine contains some example logic for mines, if you've not seen it already.
 
Back
Top