Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-25-2012, 04:40 AM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
showcharacter()

I'm sorry if this seems like a dumb question, but I can't figure it out.
I'm working on a NPC guy and when it is created it's showcharacter()
But I'm looking for the code to hidecharater for which is needed after my timeout.

I also had one more question.
for some reason, the play("sound"); brings errors in my RC when I put it in my NPC.
Reply With Quote
  #2  
Old 05-25-2012, 04:42 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It's just: hide();

That's probably because there is no play() on the server-side nor would it work the way you want it to, you'll have to use a gani or triggerclient and a weapon script.
__________________
Quote:
Reply With Quote
  #3  
Old 05-25-2012, 05:14 AM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
fowlplay you make me feel stupid! lol

But for some reason my setAni is not working
the walking works but thats it.

Last edited by blackbeltben; 05-25-2012 at 05:29 AM..
Reply With Quote
  #4  
Old 05-25-2012, 05:46 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It's setcharani, setani is for players.

Alternative you can use this.ani = "whatever"; as well, I tend to use setcharani if showcharacter() has been called and this.ani when it's not.
__________________
Quote:
Reply With Quote
Reply


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 08:50 PM.


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