You are not logged in.

1

Saturday, November 3rd 2012, 10:38am

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!?

2

Sunday, November 4th 2012, 2:21pm

...my mistake

i didn pass linkedscene variable to action.

So in <style> of hotspot i added

Source code

1
check_map(get(linkedscene));


and then in action

Source code

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

Similar threads