Thread: Passing Keys
View Single Post
  #1  
Old 08-11-2002, 10:49 PM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Passing Keys

there should be a command like sendkeys!
that would be great, so you can disable the normal map, instead of press M, you'd have to open your pack, and equip it and look at it like an item!

that way, you can do things like

if (weaponfired) {
sendkeys(m);
}
except...you'd probably want the code for the letter, as opposed to the symbol.

and,

if (keypressed) {
if (keycode for m here) sendkeys null;
}

This could also be used for pausing, unpausing, stopping players from reading (if (playerisreading) sendkeys(m),
prevent movement when desired, instead of using disabledefmovement.

The only down fall, is that you could customize your keys to change the effect a server has on your client...
so, there'd have to be
sendkeys2(game key code);
(0..10 or whatever it is).

This would be VERY useful for system NPCs, and all sorts of games and other things!
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote