Graal Forums  

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

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 03-27-2014, 03:39 PM
Starfire2001 Starfire2001 is offline
Unholy Nation
Starfire2001's Avatar
Join Date: Dec 2010
Location: The streets.
Posts: 156
Starfire2001 will become famous soon enough
Hide under bush bug?

When a player hides under a bush and then changes levels, they become invisible to other players. If a player is hidden under a bush and another player walks into that level, the player hidden under the bush is invisible to then.

The issue seems to be that the players ani isn't being properly set on the serverside. When a player is hidden on a bush, their ani is still "carry" or "carrystill" serverside, while clientside it is "hidden" or "hiddenstill". The following script fixed the problem.

Graal Script Code:
function onActionServerside() {
params[0] == "fixhidden") {
// Ensure the players gani is changed even after fix applied
player.ani "hidden";
player.ani "hiddenstill";
params[0] == "checkhidden") {
// Need to do with all players in level, otherwise if a player
    // enters a level where someone is already hiding under a bush,
    // they won't be able to see that player.
for( {

function onPlayerEnters(){

onActionClientside() {
params[0] == "checkhidden") {
// Gani is recognized properly clientisde
if(player.ani == "hidden" || player.ani == "hiddenstill") {

I'm wondering if this is just a problem on UN or if it is a problem everywhere.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:30 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.