UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

player ride in vehicle

broken avatar :(
Created 11 years ago
by smasher248
0 Members and 1 Guest are viewing this topic.
1,895 views
broken avatar :(
×
broken avatar :(
The Last of Us
Location: scotland
Date Registered: 28 September 2013
Last active: 5 hours ago
Posts
1,470
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
Signature
×
smasher248's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
smasher248's Contact & Social Linkssmasher248smasher248
how would i get the player to spawn in a vehicle which starts moving(blackhawk helicopter)?
Marked as best answer by smasher248 11 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
Code Snippet
Plaintext
link_player()
{
blackhawk = getEnt("blackhawk","targetname");
players = get_players();

tag1 = blackhawk gettagOrigin( "tag_guy4" );
tag2 = blackhawk gettagOrigin( "tag_guy7" );

link_spot1 = spawn( "script_origin", tag1 );
link_spot1 linkto(blackhawk, "tag_guy4", (0,0,-30), (0,-180,0) );
link_spot2 = spawn( "script_origin", tag2 );
link_spot2 linkto(blackhawk, "tag_guy7", (0,0,-30), (0,0,0) );
if( isdefined(players[0] ) )
{
players[0] setPlayerAngles(blackhawk.angles );
players[0] playerlinktodelta( link_spot1, undefined , 1.0, 80, 80, 80, 80);
}
if( isdefined(players[1] ) )
{
players[1] setPlayerAngles(blackhawk.angles );
players[1] playerlinktodelta( link_spot2, undefined , 1.0, 80, 80, 80, 80);
}
}

this is how i did it with my blackhawk model. but this only does the first 2 players. you would need to find the tags and add them for the last 2 players. also you need to play an animation on the player models to make it so they aren't just standing in the helicopter
broken avatar :(
×
broken avatar :(
The Last of Us
Location: scotland
Date Registered: 28 September 2013
Last active: 5 hours ago
Posts
1,470
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
×
smasher248's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
smasher248's Contact & Social Linkssmasher248smasher248
Code Snippet
Plaintext
link_player()
{
blackhawk = getEnt("blackhawk","targetname");
players = get_players();

tag1 = blackhawk gettagOrigin( "tag_guy4" );
tag2 = blackhawk gettagOrigin( "tag_guy7" );

link_spot1 = spawn( "script_origin", tag1 );
link_spot1 linkto(blackhawk, "tag_guy4", (0,0,-30), (0,-180,0) );
link_spot2 = spawn( "script_origin", tag2 );
link_spot2 linkto(blackhawk, "tag_guy7", (0,0,-30), (0,0,0) );
if( isdefined(players[0] ) )
{
players[0] setPlayerAngles(blackhawk.angles );
players[0] playerlinktodelta( link_spot1, undefined , 1.0, 80, 80, 80, 80);
}
if( isdefined(players[1] ) )
{
players[1] setPlayerAngles(blackhawk.angles );
players[1] playerlinktodelta( link_spot2, undefined , 1.0, 80, 80, 80, 80);
}
}

this is how i did it with my blackhawk model. but this only does the first 2 players. you would need to find the tags and add them for the last 2 players. also you need to play an animation on the player models to make it so they aren't just standing in the helicopter

thanks :) i have most of it ready, but i kept spawning as spectator, so again thanks
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 11 March 2014
Last active: 5 years ago
Posts
264
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
×
buttkicker845's Groups
buttkicker845's Contact & Social Links
were you spawning as spectator before or after you implemented the script i gave you?
broken avatar :(
×
broken avatar :(
The Last of Us
Location: scotland
Date Registered: 28 September 2013
Last active: 5 hours ago
Posts
1,470
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎
×
smasher248's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Has released one or more maps to the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
smasher248's Contact & Social Linkssmasher248smasher248
were you spawning as spectator before or after you implemented the script i gave you?

before, now im just spawning(not in the heli)

 
Loading ...