if statement comparing scene name

  • what am i doing wrong here? i want to change map if choosen scene is loaded...

    in hotspot -> liknedscene="scene_1"

    if (get(linkedscene) == scene_1, switch_map(up););

    if condition is never true!?

  • ...my mistake

    i didn pass linkedscene variable to action.

    So in <style> of hotspot i added

    Code
    check_map(get(linkedscene));

    and then in action

    Code
    <action name="check_map">
    		if (%1 == scene_1, do_smth(););
        	</action>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!