How would I Equip an Item?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

How would I Equip an Item?

Postby William » December 17th, 2009, 9:10 pm

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 ...
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

User avatar
William
Member
Member
Posts: 53
Joined: December 11th, 2009, 1:47 pm
Name: William Folker
Location: New Braunfels, TX
Contact:

Re: How would I Equip an Item?

Postby William » January 15th, 2010, 6:52 pm

Can anyone really help me with this one?
Yes yes, I know, I am a pretty big time noob, thank you VERY much for your patience :D

offtools
Member
Member
Posts: 125
Joined: June 23rd, 2009, 2:10 pm
Name: offtools
IRC Username: offtools
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How would I Equip an Item?

Postby offtools » January 15th, 2010, 9:11 pm

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

carter472
Member
Member
Posts: 14
Joined: June 18th, 2009, 1:34 am
Name: Adam
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How would I Equip an Item?

Postby carter472 » January 24th, 2010, 12:51 am

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.

offtools
Member
Member
Posts: 125
Joined: June 23rd, 2009, 2:10 pm
Name: offtools
IRC Username: offtools
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: How would I Equip an Item?

Postby offtools » January 24th, 2010, 9:50 am

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.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 4 guests