What's new

Solved 3rd Person On Toggle

  • Thread starter michael1026
  • Start date
  • Views 466
Status
Not open for further replies.
michael1026

michael1026

Member
Forum Addict Mr. Nice Guy
Messages
3,720
Reaction score
436
Points
490
Sin$
7
Does anyone know if it's possible to toggle third person on and off? If anyone knows the code for this can you please post it. I'm still trying to learn C++ but don't completely understand it yet. Thanks
-michael1026
 
iSuPeRX

iSuPeRX

Enthusiast
Messages
39
Reaction score
2
Points
55
Sin$
0
Here:
Code:
thirdPersonToggle()
{
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

thirdPersonElem = self createFontString( "default", 1.5 );
thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 72 + 260 );
thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
self thread destroyOnDeath( thirdPersonElem );

for ( ;; )
{
self waittill( "dpad_down" );

setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );

thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)
 
Upvote 0
michael1026

michael1026

Member
Forum Addict Mr. Nice Guy
Messages
3,720
Reaction score
436
Points
490
Sin$
7
Here:
Code:
thirdPersonToggle()
{
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );

thirdPersonElem = self createFontString( "default", 1.5 );
thirdPersonElem setPoint( "TOPRIGHT", "TOPRIGHT", 0, 72 + 260 );
thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
self thread destroyOnDeath( thirdPersonElem );

for ( ;; )
{
self waittill( "dpad_down" );

setDvar( "camera_thirdPerson", !getDvarInt( "camera_thirdPerson" ) );

thirdPersonElem setText( "3rd Person: " + getDvarInt( "camera_thirdPerson" ) + "  [{+actionslot 2}]" );
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)
tried to but wouldn't let me since 3rd was under 4 characters and third I didn't find anything.
 
Upvote 0
iSuPeRX

iSuPeRX

Enthusiast
Messages
39
Reaction score
2
Points
55
Sin$
0
tried to but wouldn't let me since 3rd was under 4 characters and third I didn't find anything.
I don't use the site search. Just Go to Google and type "site:confused:e7ensins.com (insert search here)" Its a lot more advanced that the site search.
 
Upvote 0
cj022

cj022

i iz so 1338
Messages
1,416
Reaction score
203
Points
190
Sin$
0
Here:
Code:
thirdPersonToggle()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
for ( ;; )
{
self waittill( "dpad_down" ); {
setDvar( "camera_thirdPerson", 1 );
} self waittill( "dpad_down" ); {
setDvar( "camera_thirdPerson", 0 );
}
}
}

This one does it with down on the D-Pad, Just change it to whatever you want. Next time use the search button B)

Got rid of useless text.
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register