transforming player

Hi
I been working on this for a long time. Please help.
I am making a FPS like game, and I am going to use men, tanks, and fighters.
I can’t figure out how to transform my character and controllers
(when he gets close to the game object)
into a vehicle (tank, fighter).
I have the controlls, and characters/vehicles, but no link between the two.

I spent many nights tring to figure it out, but came up with nothing.

Please help.

Is this mike111? :wink:

I am new at making, scripting, and everything else in unity, as you already know. But I am learning very fast.
My biggest weakness is scripting.
I am decent in making buildings, objects, and 3d models (in other programs of course).
What I need is how to script. What is the fast and simplest way to learn to script.
Right now I am making the level and objects, but I can’t do anything because I can’t script.

Please Help

Try out this thread at the top of this section which contains a lot of great resources for learning Unity.

http://forum.unity3d.com/viewtopic.php?t=30633

thanks I will try it.

I looked at it and its very basic, but can you send me anything thats more advance. That also gives the example, so you can practice it in Unity, like the one you gave me (The basic one).

Look at the 2d tutorial. It has an example of switching characters and each having their own controls. Just change it so instead of clicking a toggle it triggers when you run into the tank or hit a button within a certain distance and instead of leaving your Player object on the screen just disable the renderer of it (or some other method) to hide it until you exit the vehical.

Also since its going to be first person you could probably just have a separate camera in each vehicle (Tank/Fighter) and when you get in it enable the camera in that vehicle and disable the one the Player uses.

Thanks so much Guru.

If you are wondering what I am planning to make here it is.
You might think it will be to hard for me but it is actually really simple (Well ok not some parts).

1st person Player game:
Objective:
Russians vs. Germans
Help defend Stalingrad until a set date when reforcements come. (WW2)
Settings:
Stalingrad (model)
Player:
controlls:
move
jump
crouch
crawl
run

I have all except crawl but I haven’t looked in to it.
Weapons:
can carry 2 guns, 2 grenades
(When he picks up another weapon the one t he is holding is dropped).
Can pick up weapons
Can pick up health, food, medicine…
Maybe(pick up ascessories)
My player can only carry one weapon and no grenades,
havn’t made grenades,
Havn’t made health packs…
Can Use:
Tanks,
Planes,
planes,
(ships maybe)
altillary,
(can use when player gets near and presses certain button)

I have a plane with its controlls, and altillary(no controls yet), but can’t get guy to switch into the tank when near (and he has to press a certain key to get in)

Enemy/Ally soldiers:
men,
tanks,
planes,
(can command them; go there,
follow,
attack,
defend,
gaurd
I have enimies who use waypoint, I have A*Pathfinder but don’t know how to step up(I have not tried to learn how to set it up yet.)
On screen(GUI):
Compass,
Radar/Map,
ammo count,
clip count,
grenade count,
weapons,
health bar,
(inventory),
Time((minute turns to second)day, month, year)
How tired
Have ammo count.

Tell me what you think, and if you can help that will be great.
Need help on:
all GUI section
Ally, and enemy soldiers, maybe have intelligence
Tutorials on Picking up stuff, then keeping it in a inventory, then using it later, if health it affects health bar…
Vehicles movement

I can make the level easily, buildings, objects…

Thank you, please look at it and tell me what you think, and if you can help on something please do.

I can’t be of much help to your project but I can tell you were to look for some tutorials and assets to get you going.

DEFINITELY check out the FREE FPS Weapons Pack in the Showcase forum.

I would go through the whole Showcase Forum. It has free inventory systems and such you might find useful.

The Car Tutorial goes into detail about controlling cars. Might be more advanced than you need but it would be a good starting point for looking at some code.

Actually the various tutorials cover most of what you are looking for, I would just dig through those.

Thank you Guru.
If you know any scripts to change a player to a vehicle, please send it to me.
I have all of the scripts for the vehicles and player, but don’t have a transforming(If I can call it that) script to change player to a vehicle.

Thank You