Page 1 of 1
changing player models HELP!
Posted: December 6th, 2012, 4:45 pm
by Ghostman Gaming
I am trying to add a car to my RPG game. I tryed to code the car so if you walk up to it you can press E and enter the car. Then i want the car to act as a Player model. i tryed this for a critter entry
Code: Select all
r_char_name "Press E to enter"
r_char_script 20
r_char_mdl "pas gta\packages\models\vehicles\car"
r_char_faction 1
but the car does not show up when i go to critter slot 4.
i wrote this code for the changing of the player model
Code: Select all
//Car ;3c
include scripts/1
//r_char_mdl "Models/vehicles/car
]
//thirdperson 1
I'm not a coder so if i am completely wrong with my approach go ahead and correct me
any help is appreciated!

and psa gta is the name of my sandbox folder

Re: changing player models HELP!
Posted: December 7th, 2012, 1:51 pm
by kddekadenz
You commented it out (//)

I think it is a wrong approach, since once you get out of the car, it would get lost. You would need to find a way to place a car at the position you exit it.
OR
You make it follow until you exit it.
Re: changing player models HELP!
Posted: December 7th, 2012, 4:20 pm
by Ghostman Gaming
i could possibly make it follow a latitude longitude like placement system so if i get out the computer says to leave it there until further input?
Re: changing player models HELP!
Posted: December 8th, 2012, 1:38 pm
by kddekadenz
That's what I meant.
I'm not sure how to approach it exactly, though..
For the beginning you could go with a car you can't leave (=playermodel), which has sort of a cannon and deals damage to people when colliding.
For the cannon you can use a spell/multiple spells and for the damage on collide thing you can use a status effect.
Re: changing player models HELP!
Posted: December 10th, 2012, 1:50 pm
by Ghostman Gaming
In the game I'm designing there is a mission where you are sent in to steal a painting, but on your way out the cops get called. I was going to have it so you have to walk up to the get away car, but I could edit the map so when you leave the crime scene and the next map loads it automatically gives you a car. What is the code for player models to change I'm not exactly sure I use the RPG maker
Re: changing player models HELP!
Posted: December 11th, 2012, 7:47 pm
by chocolatepie33
I don't know much about RPG, but what you would do is modify the source code so that your first model is your main player model, the next two are any variants or whatever you want to add, and later on you have the alternative, story-based playermodels, such as the car. From there, you could disable the keybind which changes playermodels (it's 0 in fps mode, dunno about RPG). Then when the next map loads you can use the playermodel loading command (/playermodel 2 or something like that) to force it to change.
I don't actually know if that would work, by the way.