Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default transition targetstate to transition configName #1213

Merged
merged 2 commits into from
Aug 21, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/statemachine/fnc_createFromConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private _stateMachine = [_list, _skipNull] call FUNC(create);
private _state = configName _x;
{
private _transition = configName _x;
private _targetState = getText (_x >> "targetState");
private _targetState = [_x,"targetState",_transition] call BIS_fnc_returnConfigEntry;
commy2 marked this conversation as resolved.
Show resolved Hide resolved
GET_FUNCTION(_condition,_x >> "condition");
GET_FUNCTION(_onTransition,_x >> "onTransition");
private _events = getArray (_x >> "events");
Expand Down