Quantcast

Jump to content

» «
Photo

[.NET] Camera

3 replies to this topic
Mordecki
  • Mordecki

    Scripter

  • Members
  • Joined: 10 Jul 2006
  • Poland

#1

Posted 18 January 2018 - 11:31 PM

Hello,

Does anyone know how to trigger free camera in .net ?

Just like in Menyoo Spooner mode.

 

Thanks, Mordecki.


Bob_74
  • Bob_74

    Crackhead

  • Members
  • Joined: 05 Jan 2018
  • None

#2

Posted 19 January 2018 - 12:02 AM

I don't think you can simply create a free camera.

 

But you can create a camera (SHVDN: World.CreateCamera) and activate it with:

Function.Call(Hash.RENDER_SCRIPT_CAMS, true, false, 3000, true, false);

Then you will be able to detect player inputs (move forward, etc) and set the position of the camera accordingly ;)


Jitnaught
  • Jitnaught

    Grass tastes bad

  • Members
  • Joined: 24 Aug 2013
  • United-States

#3

Posted 19 January 2018 - 03:54 AM Edited by Jitnaught, 19 January 2018 - 03:55 AM.

activate it with:
Function.Call(Hash.RENDER_SCRIPT_CAMS, true, false, 3000, true, false);

 

You can replace this with

World.RenderingCamera = yourNewlyCreatedCamera;

It does the same thing and also sets IsActive of the camera to true.

  • Bob_74 likes this

Bob_74
  • Bob_74

    Crackhead

  • Members
  • Joined: 05 Jan 2018
  • None

#4

Posted 19 January 2018 - 07:57 AM

Ah thank you! :)
I didn't know it was implemented in SHVDN.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users