Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-25-2011, 02:26 AM
skillmaster19 skillmaster19 is offline
Registered User
Join Date: Oct 2010
Posts: 392
skillmaster19 will become famous soon enough
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";
}

Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.