Add check for Client invocation in jinja
Signed-off-by: puvvadar <puvvadar@amazon.com>
This commit is contained in:
@@ -318,7 +318,7 @@ void {{ ClassName }}::{{ UpperFirst(Property.attrib['Name']) }}({{ ', '.join(par
|
||||
constexpr AzNetworking::ReliabilityType isReliable = Multiplayer::ReliabilityType::Unreliable;
|
||||
{% endif %}
|
||||
|
||||
{% if InvokeFrom == 'Server' and HandleOn == 'Authority' %}
|
||||
{% if (InvokeFrom == 'Server' or InvokeFrom =="Client") and HandleOn == 'Authority' %}
|
||||
const Multiplayer::NetComponentId netComponentId = GetNetComponentId();
|
||||
{% else %}
|
||||
const Multiplayer::NetComponentId netComponentId = GetParent().GetNetComponentId();
|
||||
|
||||
Reference in New Issue
Block a user