Game Development Community

Another Schedule Problem

by Chris Cockcroft · in Torque Game Builder · 04/25/2005 (6:23 pm) · 5 replies

Hi John - I think I may have already deleted the above post. It my terribly thought out script that was screwing me up. There's absolutely no problem with any of the above ways of passing variables through schedules. I feel pretty stupid now :P

Thanks for you help, though :)

#1
04/25/2005 (6:23 pm)
If you echo %direction from inside the function what does it show in the case that doesn't work?

Something in my head says the variables passed are different for object version of schedule but atm I can't seem to clarify that thought.
#2
04/25/2005 (6:25 pm)
Just saw your edit


I think the parameters passed are resolved AFTER the function is called.

So in that case your reference to %player.direction wouldn't make sense. Try replacing %player.direction with %this.direciton just for giggles and see what happens.

EDIT: If you are storing the direction in the playe robject why even pass it at all? Why not just use grab %this.direction from inside the movePlayer functino?
#3
04/25/2005 (7:30 pm)
Do you want this thread removed? Let me know, either way is fine, but if it stays, it'd be helpful to have the original question posted. :)
#4
04/25/2005 (7:34 pm)
Yeah, and what post what your were doing wrong for the rest of us not-so-great coders.
#5
04/26/2005 (4:30 am)
Hey Matt, I'm one of those not-so-great coders. Trust me, there wasn't anything useful about my question :)

@Josh - Please remove the thread - it was really just a dumb error on my part and would only cause confusion, if anything :). I thought I had deleted the post before anyone had replied to it, but I guess not. The community's too damn quick :P

Thanks,
Chris