![]() |
Stumped
I'm a bit stumped as to how to get gani's to show in one certain level, but when you enter another, the default gani's show...any suggestions?
|
ganis for what?
Explain more about what you're trying to do... |
Basically, my overworld, when you enter the overworld levels "worldmap_" it is supposed to change your gani's to a specific gani. And when you leave off the overworld, it should change your gani's back to your default walk, idle, etc.
|
check the level you're in, and then use replaceani?
|
This is what I have
NPC Code://#CLIENTSIDE And that sets the gani's when I enter that level, but if i exit to another level, I need the gani's to set back to the original idle, walk, etc. |
This should help without giving out the whole answer.
Let's say you changed the idle gani with replaceani. To set it back to default do: PHP Code:
|
The script is called on creation, thus the reason why it's changing (or it's rather an illusion) when you enter the level. You are using a timeout loop that you never defined so the if (timeout) part will never be called. Try using
if (created || playerenters) instead. |
That's not helping me, How do I set it when i leave that level. Do I have to put an NPC in every level outside of the worldmap_ that sets the gani's, but then wouldn't that interfere with NPC's? Isn't there a way that if (created || timeout) <insert the rest of that script above, then at the end some how impliment a "else -blah-"?
|
Why are you using a timeout if you're not even setting the timeout? -.-
Check for if (created || playerenters) {} then check to see what level the player is in and replace with the respective ganis. |
I changed it to the playerenters and such, but when I leave the world map, I am still using the gani that it made me use on the world map...
|
Couldn't you replace timeout with timereverywhere?
|
Quote:
|
Quote:
|
No where in your code does it say that it would reset the animation, so why would you expect it to? -.- Try using an elseif statement and resetting the animation below that.
|
Quote:
And instead of double posting, ever heard of edit? |
Quote:
|
Quote:
HTML Code:
if (created || playerenters) { // This event is triggered every time a player enters a level. |
:D See, I knew one thing, but I wasn't sure how it was to be set up. the elseif worked, appreciate it.
|
Quote:
Well, I guess you have since Jordan already posted it. :) Tip: don't tell a moderator how to post. |
| All times are GMT +2. The time now is 02:10 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.