Hello,
I've been interested in Prefabs for about 2 days. I created two different Prefabs to test and understand how everything works. I'm currently interested in switches to open doors or bridges remotely in a POI.
I managed to understand that you have to use “normal” doors and bridges and lock them. However, I have a bug that only occurs on one of my two Prefabs. I can't figure out why and how to solve it.
To put it simply, I have a problem with the switches that prevent me from using them.
On my first Prefab, I can:
Install a switch
Set trigger to 1
Destroy it
On my second Prefab, I can:
Install the same switch
Set trigger to 1
But when I want to destroy it, it gives me an error in the console: “EXC ArgumentNullException: Value cannot be null. Parameter name: key”.
If I disable the trigger, I can destroy the switch without error.
If I connect the switch to a door, it gives me the error when it is activated.
I would like to understand why I have this error in one Prefab but not in the other. For the moment I'm just doing tests but if this happens to me on a Prefab after 80 hours, it would be annoying.
Thank you for your help and apologize for my English.
I've been interested in Prefabs for about 2 days. I created two different Prefabs to test and understand how everything works. I'm currently interested in switches to open doors or bridges remotely in a POI.
I managed to understand that you have to use “normal” doors and bridges and lock them. However, I have a bug that only occurs on one of my two Prefabs. I can't figure out why and how to solve it.
To put it simply, I have a problem with the switches that prevent me from using them.
On my first Prefab, I can:
Install a switch
Set trigger to 1
Destroy it
On my second Prefab, I can:
Install the same switch
Set trigger to 1
But when I want to destroy it, it gives me an error in the console: “EXC ArgumentNullException: Value cannot be null. Parameter name: key”.
If I disable the trigger, I can destroy the switch without error.
If I connect the switch to a door, it gives me the error when it is activated.
I would like to understand why I have this error in one Prefab but not in the other. For the moment I'm just doing tests but if this happens to me on a Prefab after 80 hours, it would be annoying.
Thank you for your help and apologize for my English.