Hello,
First of all, this is what i would like to accomplish:
- Retrive keyvalue pairs from an entity directly
The way i've been handling keyvalues in the past is by hooking
FM_KeyValue and storing keyvalue data as they are being set by the engine.
Now, in a new project for Sven Co-op, there is a loophole where keyvalue data can be changed through certain entities native to Sven Co-op. Such as:
During my testing, triggering these entities can successfully change keyvalues of other entities without the
FM_KeyValue forward being triggered.
Should such an entity be triggered i become blind to the fact that the keyvalue data of its target is different from when i last retrieved it; as my local cache of the target entity is now different from reality.
Now i am asking for your help. Is there another way of retrieving keyvalues, maybe directly from the engine?
Could it be possible to hook the function these entites use to change keyvalue data?
Even getting just the
value when you already know the
key would be somewhat useful.
Thank you for your time.