and also to target NPCs and make them say things
Is there a javascript function that forces an emote?
There are more on the 3d client, but since I use 2d I can only think of 4
1-bow
2-salute
3-shrug 1
4- shrug 2
There might only be 1 shrug animation, I"m not sure.
So is there a function that can force these:
something along the lines of:
Code: Select all
function CommandRegistration()
{
RegisterCommand( "bow", 0, true );
var Text;
}
function command_NT( socket, cmdString )
{
socket.CustomTarget( 0, "Select Target" );
Text = cmdString;
}
function onCallback0( socket, ourObj )
{
ourObj.ForceBow();
}
If these functions don't exist, could they be easily exported from the .exe? Maybe Bowing is all handled by the client....that would stink, since all human NPCs use the same body, it shouldn't be stretch to make a human NPC bow just like a PC. It would also add more depth to the RP experience.
Thanks.