Mine Trigger
Moderator: Moderators
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Mine Trigger
How do I make mines that set off when anyone steps on it?
-
RacoonLR
- Second Lance Corporal

- Posts: 105
- Joined: Fri Apr 25, 2014 5:31 pm
- xbox live or psn: No gamertag set
- Location: UNDER YOUR BED
Re: Mine Trigger
Aren't mines included by default in swbf2?Kingpin wrote:How do I make mines that set off when anyone steps on it?
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
They are, but they only set off when the opposing team steps on it. I would like it for anyone who steps on it to explode.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
The only parameter relating to the way the ordnance triggers seems to be TriggerContact, but I'm pretty sure setting it to 0 just makes it explode when its lifespan elapses. I'd try it anyways, though, just to be sure.[color=#FFFFFF]Weapon_Notes.txt[/color] wrote:EntityMine ("mine"):
GeometryName: model used for the mine
LifeSpan: maximum life time
Rebound: coefficient of restitution (like a grenade)
Friction: coefficient of friction (like a grenade)
ExplosionTrigger: explosion used when triggered
ExplosionExpire: explosion used when its lifespan expires
ExplosionDeath: explosion used when destroyed
TriggerContact: trigger when touched by an enemy
TriggerRadius: radius to search for enemies; the mine will trigger when an enemy inside this radius stops or moves away
SuppressRadius: radius to search for friendlies; the mine will not trigger when a friend is inside
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: Mine Trigger
I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
MileHighGuy wrote:I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.

Well then.
-
Noobasaurus
- Droid Pilot Assassin

- Posts: 2006
- Joined: Tue Aug 17, 2010 5:56 pm
Re: Mine Trigger
Off-topic: Why did I just watch that? I don't even know.
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
Marth8880 wrote:MileHighGuy wrote:I don't think it is triggercontact.The mines have to be on a different team. I saw this work in the hunger games during FFA mode, I was killed by my own mines because they were on a separate team.
Well then.Not sure how one would change the team of an ordnance, though it might be possible, I guess.
Either I ate something I should not have, or that video is real o_0
On-Topic: Bring fourth K, King of the Hungerith Gameiths! *blows horn*
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Mine Trigger
Maybe something like affect friend??
btw what means
TriggerSingle = "0"
and
TriggerAll = "1"
btw what means
TriggerSingle = "0"
and
TriggerAll = "1"
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
Nah, AffectFriend only works for emitter ordnance.
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
Hm. I tried making him lay two mines, one from each team, but then it just exploded 
That's alright, thanks for the help AND trippy 7 minutes of my life
That's alright, thanks for the help AND trippy 7 minutes of my life
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
Wait, how are you determining the mine's team? Also, you'd probably want to set the team to neutral (0).
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
With the team set to neutral, neither sets it off.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
Now my player explodes as soon as he lays it 
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
Ah, yeah, makes sense. :p Since there's no real way to delay the trigger activation, you're going to have to either increase the MinStrength and MaxStrength for the dispenser so that the mine is thrown far enough away from the player, decrease the TriggerRadius, decrease the ordnance Velocity, or a combination of the three.
Edit: Actually, you *could* just make it so the unit dispensing the mine is immune to mines.
Edit: Actually, you *could* just make it so the unit dispensing the mine is immune to mines.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Mine Trigger
Maybe change this lines in your mine's odf to:
I think it could work. I am not sure.
Code: Select all
TargetEnemy = "1"
TargetNeutral = "1"
TargetFriendly = "1"- Kingpin
- Jedi

- Posts: 1096
- Joined: Fri Sep 13, 2013 7:09 pm
- Projects :: The Sith Wars II
- Location: Denver, CO
- Contact:
Re: Mine Trigger
That's what I did before, but I exploded on myself 
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mine Trigger
Those aren't valid parameters for ordnance ODFs.
Full list of parameters (i.e., the most useful doc in the world): http://www.secretsociety.com/forum/down ... meters.txt
Full list of parameters (i.e., the most useful doc in the world): http://www.secretsociety.com/forum/down ... meters.txt
