It is just me or my system ?
I was playing around with the projectile and configured a oneshot key press in script ( i've used may time before).
Using the [ENTER] key to fire the projectile..
Stupid code wouldn't work !!
I added the configure controls & a EventOnInput.
The EOI object, set to the [ENTER] key, works fine.
The configure controls utility registers the enter key as [ENTER].
I wasted 2 days trying to figure out why my key input script above wouldn't work.
Then it downed on me..
It's not [ENTER], it's [RETURN]... %^#*$)@#)&
Is this just my system ? or is this a `issue' with the configure controls utility, where it should really show [RETURN] as the key press... IMO... not [ENTER]. or maybe [ENTER]/[RETURN] .
Maybe it's an age thing catching up to me, and not using 3drad a whole lot till recently thinking up a project idea, and throwing it together.
PS Not a FPS, even though it will have 6 projectiles in it, for a 6 players, multi-user project .
You have already seen some screen shots .. WIP.
I was playing around with the projectile and configured a oneshot key press in script ( i've used may time before).
Using the [ENTER] key to fire the projectile..
Code: [Select]
bool bp;
///
void Main()
{
///Button Press
/// `DIK_ENTER` wont work, use `DIK_RETURN` instead.
if (iKeyDown(iKeyCode("DIK_ENTER")) && !bp ){
bp = true;
iObjectStart(OBJ_66); ///fire projectile
}else{
bp = false;
}
}
Stupid code wouldn't work !!
I added the configure controls & a EventOnInput.
The EOI object, set to the [ENTER] key, works fine.
The configure controls utility registers the enter key as [ENTER].
I wasted 2 days trying to figure out why my key input script above wouldn't work.
Then it downed on me..
It's not [ENTER], it's [RETURN]... %^#*$)@#)&
Is this just my system ? or is this a `issue' with the configure controls utility, where it should really show [RETURN] as the key press... IMO... not [ENTER]. or maybe [ENTER]/[RETURN] .
Maybe it's an age thing catching up to me, and not using 3drad a whole lot till recently thinking up a project idea, and throwing it together.
PS Not a FPS, even though it will have 6 projectiles in it, for a 6 players, multi-user project .
You have already seen some screen shots .. WIP.