| skillmaster19 |
03-25-2011 02:26 AM |
GUI script works in v6 but not v5?
I made a GUI script that sets the players gani if they click a button, and to my suprise the buttons work in v6 but not v5. Can anyone explain why/ how to fix it? here is the code:
NPC Code:
// Scripted by skill
//#CLIENTSIDE
function onWeaponFired() {
gestureswindow.show();
new GuiWindowCtrl("gestureswindow")
{
profile = GuiBlueWindowProfile;
extent = {310,500};
position = {5, 5};
text = "Gestures";
new GuiButtonCtrl("gesturegrab")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {105,25};
text = "grab";
}
new GuiButtonCtrl("gesturewalk")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {5,25};
text = "walk";
}
new GuiButtonCtrl("gesturesit")
{
profile = GuiBlueButtonProfile;
extent = {100, 25};
position = {205,25};
text = "sit";
}
}
}
function gesturegrab.onAction()
{
player.ani = "grab";
}
function gesturewalk.onAction()
{
player.ani= "walk";
}
function gesturesit.onAction()
{
player.ani= "sit";
}
|