SYSTEM: WIN
equipmentDamaged is not fired if you set the status from within a script.
So if OXP-A has to disable a equipment from OXP-B and the handling is inside these event-handlers - nothing will happen.
During a conflict it works.
v1.72 equipmentDamaged
Moderators: winston, another_commander, Getafix
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Strongly related to this topic: Wrong parameter transfer with equipmentDamaged and equipmentDestroyed.
From the 1.72 update notes:
Looking in the code I noticed it is indeed only transferring the name not the whole key.
From the 1.72 update notes:
playerBoughtEquipment(equipmentKey) does work well, but the other two don't. Using it in code I got errors. On logging the "equipment" I noticed it is not using the key, but just the readable equipment name. And with the name you can't do much else than displaying it. With the key you can get all other essential info over the new "EquipmentInfo"New script events: playerBoughtEquipment(equipmentKey), equipmentDamaged(eqipmentKey), equipmentDestroyed(equipmentKey).
Looking in the code I noticed it is indeed only transferring the name not the whole key.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: v1.72 equipmentDamaged
Fixed, player.ship.setEquipmentStatus(foo, "EQUIPMENT_DAMAGED") now triggers equipmentDamaged() handlers.Svengali wrote:equipmentDamaged is not fired if you set the status from within a script.
E-mail: [email protected]