Page 1 of 1

3 questions

Posted: Wed Apr 30, 2008 9:36 pm
by creekmonkey
1. Are keyboard commands ( ie: IsKeyDown or self.key_pressed ) only possible in LowLevel ?
2. Is it possible to patrol form point to point in LowLevel?
3. Is it possible in either HL or LL to control the speed of a patroling pawn with the keyboard.

Re: 3 questions

Posted: Thu May 01, 2008 1:06 am
by Graywolf
1. Are keyboard commands ( ie: IsKeyDown or self.key_pressed ) only possible in LowLevel ?
Yes, but actually, no. The trick, is to use another pawn, that is in LowLevel. Add a dummy projectile pawn(no render, no collision), and set it's szEntityName to, say, "keyboard". Now, in your pawn that's running HighLevel, you can do this:

Code: Select all

SomeOrder[()
{

if keyboard.IsKeyDown(key_number)
{
// do some stuff
}


}]
And, voila. HighLevel keyboard reading.