• Is it possible?
    14 replies, posted
I am currently trying to develop a gamemode that is similar to the movie death race. Basically I would like it so when you join for the first time, you are given a car *an entity not a vehicle*, that car is stored in your Inventory. If you kill someone you get 50 points, with points you buy better cars / upgrades. Is this possible? If so how would it work? Could I use PointShop for the Car shop?
[QUOTE=Privateer;41731161]Basically I would like it so when you join for the first time, you are given a car [B]*an entity not a vehicle*[/B], that car is stored in your Inventory.[/QUOTE] I don't think you should try to make a gamemode yet.
[QUOTE=Bletotum;41731179]I don't think you should try to make a gamemode yet.[/QUOTE] I am making it with WAC not cars, it was an example.
They're still entities.
[QUOTE=ollie;41731888]They're still entities.[/QUOTE] I meant the tab though.
What? You shouldn't be deriving your gamemode from sandbox if you are going to have a custom inventory. You can spawn WAC entities fine without the tab if you know what you are doing.
[QUOTE=ollie;41732075]What? You shouldn't be deriving your gamemode from sandbox if you are going to have a custom inventory. You can spawn WAC entities fine without the tab if you know what you are doing.[/QUOTE] I never said I was deriving from sandbox. Basically I want to know if it is possible to store WAC entities in an inventory, that way if you buy an entity and leave, next time you come back you can deploy it.
Yes. It is possible.
[QUOTE=EvacX;41732723]Yes. It is possible.[/QUOTE] How would it work?
If someone bought for example, "Car01", you'd then store "Car01" in that player's inventory. If you're not quite good with databases I suggest you use Get/SetPData.
[QUOTE=EvacX;41732898]If someone bought for example, "Car01", you'd then store "Car01" in that player's inventory. If you're not quite good with databases I suggest you use Get/SetPData.[/QUOTE] Could I modify the NPC Car Dealer to sell the WAC entities?
[QUOTE=Privateer;41733266]Could I modify the NPC Car Dealer to sell the WAC entities?[/QUOTE] "The NPC Car Dealer"? What do you mean by that? There's probably a hundred different "NPC Car Dealer" scripts out there, I have no idea how the one you use works, it's entirely up to you to figure out how to do stuff, if you can't solve a problem on your own then maybe you should try your hand at something other than coding.
[QUOTE=EvacX;41733465]"The NPC Car Dealer"? What do you mean by that? There's probably a hundred different "NPC Car Dealer" scripts out there, I have no idea how the one you use works, it's entirely up to you to figure out how to do stuff, if you can't solve a problem on your own then maybe you should try your hand at something other than coding.[/QUOTE] I never said I couldn't I am just asking so I don't work towards an impossible goal.
If you knew what you were doing then you'd know why your question was stupid.
Short answer: most everything is possible. Just not for you, not yet. Abandon this project and read up on the lua programming manual. Try out the 2D "LOVE" game engine. Try editing some existing addons in minor ways until you understand how they work.
Sorry, you need to Log In to post a reply to this thread.