Page MenuHomeFeedback Tracker

SCR_ScenarioFrameworkTriggerEntity.OnChange parameter inconsistency
Assigned, NormalPublic

Description

In the method documentation there is written

\param[in] ent Entity ent is an input parameter representing an entity in the game world that triggers the method's action when its state changes

When the desired entity enters the trigger (activation), the parameter of OnChange will be the SCR_ScenarioFrameworkTriggerEntity instance itself. However, when the desired entity leaves the trigger (deactivation) the parameter is instead the desired entity. This seems to me like an inconsistency. I read the doc as if the behaviour on entity exit (deactivation) is the correct behaviour, and that this should also be the case for trigger activation.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

runekn created this task.Wed, Jul 2, 8:58 PM
runekn updated the task description. (Show Details)
Geez changed the task status from New to Assigned.Thu, Jul 3, 12:25 PM