SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/10/2014, 06:17 AM   #1
SupaVZ
Huge Clucker
 
SupaVZ's Avatar
 
Join Date: Apr 2012
Location: In the Graves
Posts: 245
Reputation: 38
Exclamation [HELP/REP+] Changing LS view point at LV

Hello,

I put this under OnPlayerConnect

SetPlayerCameraPos(playerid,1930.5847, 993.2450, 158.1793);
SetPlayerCameraLookAt(playerid,1930.5847, 993.2450, 158.1793);

And the LV View isnt working
SupaVZ is offline   Reply With Quote
Old 16/10/2014, 06:34 AM   #2
Threshold
High-roller
 
Threshold's Avatar
 
Join Date: Nov 2012
Location: Australia
Posts: 3,126
Reputation: 527
Default Re: [HELP/REP+] Changing LS view point at LV

What you need to do is set 'TogglePlayerSpectating' to true. Objects are only streamed when the player is within close vicinity or when they are in spectating mode.

Note that toggling 'spectating' to true will disable the use of the class selection arrows. If you want to avoid this, I would recommend you set your player's position NEAR the camera position, but do not have them showing on the screen. (Place the player behind the camera for the best effect)

Links:
http://wiki.sa-mp.com/wiki/TogglePlayerSpectating
http://wiki.sa-mp.com/wiki/SetPlayerPos

EDIT: I just realised that your SetCameraPos and SetCameraLookAt coordinates are exactly the same. Your SetCameraLookAt needs to be the coordinates of the point you want the camera to face...
__________________

Kar's Cops and Robbers 2019
Threshold is offline   Reply With Quote
Old 16/10/2014, 06:41 AM   #3
SupaVZ
Huge Clucker
 
SupaVZ's Avatar
 
Join Date: Apr 2012
Location: In the Graves
Posts: 245
Reputation: 38
Default Re: [HELP/REP+] Changing LS view point at LV

Since you're always online in sa-mp forum, get on skype you noob. its me Chuck
SupaVZ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with a Point to Point Mission (incognito Streamer) tommzy09 Scripting Help 6 25/07/2014 12:29 AM
help changing money score to kill(point) score please spike87 Scripting Help 11 19/09/2011 01:57 PM
why when attaching some objects above vehicles, cause the camera view to view the object close up? Donya Help Archive 2 18/05/2011 12:34 AM
Pickup point, exit/enter point - Virtual worlds Chivava Help Archive 4 27/12/2010 02:55 PM


All times are GMT. The time now is 05:39 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.