Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
Hi, I've seen somewhere a server where, when the player is choosing his class he is on a bike (NRG-500) as passenger and a npc is driving it. And what about the camera will it follow the npc or no ?
Please help me to do this, Thanks in advance. (I have already npc-s in my server).
Posts: 102
Threads: 9
Joined: Jan 2010
Reputation:
0
I'm not entirely sure how did they do this, but simply PutPlayerInVehicle should work, assuming you know how to add a NPC driving a NRG.
Posts: 134
Threads: 29
Joined: Nov 2012
Reputation:
0
I guess if you do Spectatenpc in your OnPlayerConnect function or setcameraposition/face(npc,x,y,z) something like that
Posts: 759
Threads: 80
Joined: Oct 2012
Reputation:
0
First u need to script the npc and create a class selection for when the player spawns :/ its alot to explain but let me see how best i can break it down:
Create A Npc riding a nrg
Then u need to spawn the player toogle there cotroller off when they spawn send them to a custom made then run a respawn that sets the controller usable again
In the custom class selection:
you need to put the player in the vehicle and let him ride around with the npc and set a camera to follow him around where the npc goes and there u go ur done
PS: simpler explained than done
Posts: 591
Threads: 70
Joined: Jun 2009
Reputation:
0
Dafuq! It was easier than I thought I just removed all cameras and etc. and I've added PutPlayerInVehicle(playerid, vehicleid, seatpos);
Posts: 1,826
Threads: 52
Joined: Feb 2012
Reputation:
0
What if there are more than 1 users selecting class? For this you will have to make NPCs for each and every person who is currently using the class selection.