Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

changing player models HELP!

Talk about anything related to Platinum Arts Sandbox here!
Locked
Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

changing player models HELP!

Post 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! :shock:
and psa gta is the name of my sandbox folder :lol:
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: changing player models HELP!

Post by kddekadenz »

You commented it out (//) :P
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.
Kelgar is an advanced RPG beeing developed in Sandbox
Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

Re: changing player models HELP!

Post 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?
User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: changing player models HELP!

Post 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.
Kelgar is an advanced RPG beeing developed in Sandbox
Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

Re: changing player models HELP!

Post 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
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: changing player models HELP!

Post 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.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
Locked