ID:163188
![]() Sep 28 2007, 5:46 pm
|
|
How can I make an Item apear on the screen and as well in my inventory.. The onscreen one would act like a shortcut.
|
![]() Sep 28 2007, 5:54 pm
|
|
you mean like picking up an object and it shows what you picked up on your screen?
|
You aren't going to be able to have the object in two places at the same time. You are going to have to have a dummy object on screen that acts like the orginal.
|
okey dokey, you can just copy and paste this, but im gonna explain along the way how to do this...
mob i dont know if that'll work or not (it should), but after that, it goes onto this... obj //the object all of that should work, im not all entirely sure about the second part... so if any of the other coders find a problem with it, feel free to edit! :) |
well hazordhu has a hud and it shows the items in it... you can right click them and choose actions.. they work like the inventory one... How can I do this but just 1
|
The object has the get verb not the mob... How can I make this work
obj |
get rid of the screen loc and put it at the end of the code like this...
//your code |
What happens if there's no client defined when it's created? It won't show!
It's more like he has to add the object when picked up and take it off when dropped. Get(...) |
Eh no problem. When you start making more projects, you learn to think about problems ahead of time, such as:
"Will this work the way I want it to?" "Is there any obvious flaw that will reduce the # of players in my game or make it unfair?" "What is the aftermath if I put this in?" "What will happen if this does not exist?" "What must I add in order to stop any runtime error that may occur?" " [usually in the future] If there a better alternative of doing this?" etc. |