Page 1 of 1
How would I Equip an Item?
Posted: December 17th, 2009, 9:10 pm
by William
Alright ... this is a big one. I'm wondering how I can make an item equipable, and not only have it "equipped" but show up in first person. What I'm trying to do right now is make is so that when I pick up my weapon I can equip it (left or right) and it will come up in first person view as if you were holding it ... and I literally have absolutely no idea where I would even start other than picking it up ...
Re: How would I Equip an Item?
Posted: January 15th, 2010, 6:52 pm
by William
Can anyone really help me with this one?
Re: How would I Equip an Item?
Posted: January 15th, 2010, 9:11 pm
by offtools
fps and moviecube supports attachments
playerattach [bodypart num] [model path] [anim rule = 0]
playerdetach [bodypart num]
viewtopic.php?f=10&t=714&p=3833#p3833
offtools
Re: How would I Equip an Item?
Posted: January 24th, 2010, 12:51 am
by carter472
Sorry for bothering. But I don't quite understand.
I mean, I can understand that the previous post by offtools is a code of some sort.
Sorry offtools, but could you elaborate just a bit more?
I'm looking to equip items onto a character as well. Would I have to put your code to the item or bind it onto a key?
Thanks in advance.
Re: How would I Equip an Item?
Posted: January 24th, 2010, 9:50 am
by offtools
these are scripting commands. you can use it by pressing "T", this will open a sort of console. how to use these commands is described in the moviecube wiki at our wiki. here you will also find the number for the "body part" in the playerattach command. its a bit tricky to use at the moment and it works only with the Unihuman model (uh/chars/man).
to attach a hat onto your player use:
playerattach 0 uh/attach/hat 0 [0 is Head, uh/attach/hat is the path of the model, 0 either attachment is animated or not]
playerattach 16 uh/attach/lshoe 0 => shoe to left foot
playerattach 17 uh/attach/rshoe 0
i'm working on to make it easier and adding some register commands for playermodels and items, to move the body part stuff into the models cfg files.
offtools.