I just added some mine hint nodes to my map and i ran into the problem that the Rebel engineer place a detonator pack at the node but it explode immediately. No problem with the units placing regular mines.
Any way to stop the engineer from suicide?
How to prevent engineer from self destroying?
Moderator: Moderators
- Rends
- Sith

- Posts: 1278
- Joined: Fri Oct 15, 2004 6:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
- Contact:
- StarkillerMarek
- Rebel Colonel

- Posts: 611
- Joined: Wed Aug 12, 2009 4:42 pm
- Location: I may be back.
Re: How to prevent engineer from self destroying?
This has been discussed before and I think it has to do with adding something like: "TargetEnemy=1" in weapons odf. Not sure though, this isn't my sort of thing.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: How to prevent engineer from self destroying?
You're on the right track, Starkiller.
from http://www.gametoast.com/forums/viewtop ... 27&t=20137AQT wrote:You can fix the suicide bomber problem by adding this line to the detpack's ODFsomewhere under [Properties].Code: Select all
TargetEnemy = "1"
- Rends
- Sith

- Posts: 1278
- Joined: Fri Oct 15, 2004 6:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Germany
- Contact:
Re: How to prevent engineer from self destroying?
nice but my ALL side is stock one 
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: How to prevent engineer from self destroying?
You can't make a seperate side, then, for this one unit? I suppose you could use SetClassProperty, then....
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: How to prevent engineer from self destroying?
But that'll mess up mp.
@Rends: you can make a side based on another side -
so load the default alliance side first in your lua, and for your custom side have an engineer based on the stock ALL engineer (same way its based on the all_default_engineer), change the detpack weapon to the modified detpack, and load the "new" engineer after the stock engineer in your lua. You'll end up with a side thats probably a few kbs.
@Rends: you can make a side based on another side -
so load the default alliance side first in your lua, and for your custom side have an engineer based on the stock ALL engineer (same way its based on the all_default_engineer), change the detpack weapon to the modified detpack, and load the "new" engineer after the stock engineer in your lua. You'll end up with a side thats probably a few kbs.
