Hello,
I'd like to know if it's possible to change NPC's animationTime, in order to increase or decrease npc movement speed ?
I changed avatar.currentAnimTime, but it doesn't seem to really change.
NPC animationTime
The avatar speed is saved in a User Variable. If you change that variable for the NPC user, you will change its speed on the client-side.
I think we will have to add a document describing all the User Variables involved in OpenSpace, so you know what you have to set when creating an NPC user.
I think we will have to add a document describing all the User Variables involved in OpenSpace, so you know what you have to set when creating an NPC user.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Yes, as cyli said _os_aTime is the "animation time" variable: it is the duration in milliseconds of the avatar movement from tile to tile along N/E/S/W directions. This parameter is used by OpenSpace to set the avatar speed when moving on the map. A correction is applied automatically for the other directions.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 31 guests