Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   move() doesn't update NPC position (https://forums.graalonline.com/forums/showthread.php?t=66082)

Yen 05-17-2006 09:47 PM

move() doesn't update NPC position
 
I've got an NPC that uses move() to walk.
This NPC's walk animation has a particle effect. When the baddy is moving, the particle doesn't move with it. I have the emitter's position constantly being updated in a timeout.

Also, I have a custom name system that shows NPC and player names.
When an NPC is moving, the name doesn't move with them until they stop moving.

Admins 05-18-2006 10:25 AM

This should go to the scripting forum. Are you sure you are updating the position of the showimg? Have you tried to use the "attachtoowner" option ?

Yen 05-18-2006 09:52 PM

I've used everything. attatchtoowner, attachposition, using an attr[] to attach the effect, and so on.
Nothing works.

ApothiX 05-19-2006 02:20 PM

I have noticed this too, I think the position of the monster is not getting updated until it finishes moving. (When you put x=x while a monster is moving, he will revert back to where he started)

MegaMasterX90875 05-24-2006 04:00 PM

That problem is bad on Maloria, but I recall someone telling me that using "move(blahblahblah)" wasn't such an efficent way to move NPCs...

ApothiX 05-25-2006 02:07 PM

Quote:

Originally Posted by MegaMasterX90875
That problem is bad on Maloria, but I recall someone telling me that using "move(blahblahblah)" wasn't such an efficent way to move NPCs...

It's efficient, it just doesn't work the way you'd expect it to.

jake13jake 05-26-2006 06:59 AM

will someone explain attachtoowner for me?

Admins 05-27-2006 08:02 PM

Eventually take a look at g2k2spellball*.gani, e..g g2k2spellball_bullet.gani or g2k2spellball_wounds.gani


All times are GMT +2. The time now is 04:38 PM.

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