Page 1 of 1

Waypoint file - keyboardPress(VK_SPACE); problem

Posted: Thu Mar 24, 2011 4:10 am
by Tsutomu
I have a problem with using this code inside waypoint section (not using outside or inside waypointS so that's not the issue)
I use this function:

Code: Select all

<!-- #  1 --><waypoint x="2690" z="1857" y="723">keyboardPress(VK_SPACE);	</waypoint>
<!-- #  2 --><waypoint x="2729" z="1550" y="1023">	</waypoint>
<!-- #  3 --><waypoint x="2716" z="1440" y="970">	</waypoint>
<!-- #  4 --><waypoint x="2895" z="1423" y="654">keyboardPress(VK_SPACE);	</waypoint>
<!-- #  5 --><waypoint x="3065" z="1433" y="591">	</waypoint>
It doesn't work says:
bad argument #1 to "keyboardPress" <<null>>
Does it take 2 args, and why does it interpret VK_SPACE as arg2 if there's no arg1, confused a bit.
Shouldn't it say #2 if it takes 2 args?
I'm going to try with (VK_SPACE,null) and (null,VK_SPACE) now but i doubt it'll work
If any1 knows what this isue's about please help.
Thanks.

Re: Waypoint file - keyboardPress(VK_SPACE); problem

Posted: Thu Mar 24, 2011 4:20 am
by JackBlonder
Wiki says

Code: Select all

keyboardPress( key.VK_SPACE );
http://www.solarstrike.net/wiki/index.p ... boardPress

Re: Waypoint file - keyboardPress(VK_SPACE); problem

Posted: Thu Mar 24, 2011 4:25 am
by Tsutomu
Jesus, embarrasing.
Thank you, and excuse for the trouble.