What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

how to get mount name

Status
Not open for further replies.

fredgsanford

Member
Joined
Jan 2, 2015
Messages
552
Reaction score
0
I am trying to make a simple plugin but I can't find where to find out mounts name or at least if its a donkey or cart or whatever. Is there someone who can show me how to get the name or type (as in cart wagon donkey horse etc) so that i can use that in a plugin as a variable to tell if its out and what kind it is?
Oh and while i am asking for help might as well ask how do i tell if cart etc has packs on it to please?

Thanks in advance
 
Last edited:
woops was using if(varname=mountname) instead of == for the mount name so i figured that out still could use some help with the checking to see if packs on cart part though?
Thanks in advance
 
for the packs on the cart, look for the doodad close to the cart. Its a different one between empty storage box, and one with a pack in it.
 
Code:
var mount=me.getMount();
if (mount!=null) Log(mount.name);
//////////////////
//for next code stay close to cart
foreach (var dod in GetDoodads())
{
if (dist(dod) < 10) Log (dod.name + " " + dod.id);
}
 
thanks i got it i was using the getmount thing but on my following if line to use it wrong
 
Status
Not open for further replies.
Back
Top