Thread: Some question
View Single Post
  #1  
Old 10-10-2011, 09:22 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Some question

So I´m working on with my movement (still improving dusty´s bare bone movement) and I got up to this:

I tried making a DisableMove(); command, which will be like DisableDefMovement(); (that worked so far) and now I wanted to make it set a gani like DisableMove("walk");. Here´s the scripts parts:


PHP Code:
function onActionServerside() {
  if (
params[0] == "DisableMove"clientr.move false;
}

//#CLIENTSIDE
public function DisableMove(ani) {
  
triggerserver("gui"name"DisableMove");
  if (
ani != NULLsetani(aniNULL);

PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/test"DisableMove("walk");

PHP Code:
//#CLIENTSIDE
function onTimeOut() {
  
//movement stuff similar to dustys bare bone one. Suggesting to take a look there (link below)
  
if (clientr.move == truesetani(client.modeNULL); // set the characters animation

(link >here<)


I always have to say twice /test to make the gani set. Why won´t it work at the first time? How can I fix it?
__________________
MEEP!
Reply With Quote