shieldsdown event?
- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
hmm... I know there is an event tag for shields down, but it is likely limited to the playership shields. Not sure that the event would trigger for NPC ships.
There is onObjAttackedByPlayer, which the Antartica uses and I posted a little example on how to use that (it's a bit tricky!) over at xelerus.
OnObjReconned might be of some limited use.
Ships are the only object with shields, but stations have the greater selection of events.
You could simulate shields for a station, and make specialized weapons to take out the station shielding. This could all be done from script so you could build in some controls.
Then you just need some kind of target script- when the player uses the scripted weapon, the actions you desire could result.
Maybe in a few days we will have other options with .99.
There is onObjAttackedByPlayer, which the Antartica uses and I posted a little example on how to use that (it's a bit tricky!) over at xelerus.
OnObjReconned might be of some limited use.
Ships are the only object with shields, but stations have the greater selection of events.
You could simulate shields for a station, and make specialized weapons to take out the station shielding. This could all be done from script so you could build in some controls.
Then you just need some kind of target script- when the player uses the scripted weapon, the actions you desire could result.
Maybe in a few days we will have other options with .99.
- Periculi
- Fleet Officer
- Posts: 1282
- Joined: Sat Oct 13, 2007 7:48 pm
- Location: Necroposting in a forum near you
OnObjAttackedByPlayer seems to have some special case rules.
The CSC uses a blank station, which seems to be part of the requirement.
You can't use it just on a station, you can't use it just on a ship. You have to use it on a ship that is 'attached' to a station like the CSC's are.
The object you use can act like a station or a ship.
The CSC uses a blank station, which seems to be part of the requirement.
You can't use it just on a station, you can't use it just on a ship. You have to use it on a ship that is 'attached' to a station like the CSC's are.
The object you use can act like a station or a ship.
I managed to solve my problem by making a recurring timer event that checks the health of the ship's shield, if you keep its shields down long enough to be checked by the timer, then my event will be executed.
The only problem now is that the ship's KM500 missiles won't track me because I told the ship to gate and not to attack.
The only problem now is that the ship's KM500 missiles won't track me because I told the ship to gate and not to attack.