PDA

View Full Version : Key Map?


MarkDonut
03-27-2009, 11:20 PM
Hi, I couldn't find any documentation on how to do stuff like spawn ramps or dance, all i could figure out were a few of the f-keys, is there a list of all new keys or does it have to do with individual scripts and if so, what new keys were added?

Mex
03-28-2009, 03:36 AM
Hi, I couldn't find any documentation on how to do stuff like spawn ramps or dance, all i could figure out were a few of the f-keys, is there a list of all new keys or does it have to do with individual scripts and if so, what new keys were added?

Hi mark,

Adding objects such as ramps to the server and setting player animations (such as dancing) is done purely by scripting
the scripting language for VCO is LUA, and a good reference is here http://wiki.gtagaming.com/

Sebihunter
03-28-2009, 06:52 AM
Hi, I couldn't find any documentation on how to do stuff like spawn ramps or dance, all i could figure out were a few of the f-keys, is there a list of all new keys or does it have to do with individual scripts and if so, what new keys were added?
Thats scriptable, the server owner can choose the keys (I hope I´m right)

tuntis
03-28-2009, 03:34 PM
Use the onPlayerKeyPress callback. Example:

function onPlayerKeyPress(PlayerID,KeyID)
if KeyID == 17 then
outputChatBox(PlayerID, "You pushed Control!", 255, 255, 0, 255)
end
end

Here's some list of the key codes. (http://livedocs.adobe.com/flash/8/main/wwhelp/wwh impl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001686.html) (couldn't find anything better)

Ettans
03-28-2009, 05:24 PM
Heres a big list: http://msdn.microsoft.com/en-us/library/aa243025(VS.60).aspx

MarkDonut
03-28-2009, 06:46 PM
I meant like, the /commands, like how /drunk makes your camera drunk and /sober turns it off, or the /goto # commands.

Any list of those around?

tuntis
03-28-2009, 06:51 PM
You'll need to write your own commands for /drunk etc.

The scripting wiki (http://wiki.gtagaming.com) has lists of functions and 2 basic tutorials so far. #vco in GTANet IRC has some people who can help (including me).