Quantcast

Jump to content

» «
Photo

PLZ HELP - object spawning,roating,moving!

3 replies to this topic
XxproxXgammer
  • XxproxXgammer

    Player Hater

  • Members
  • Joined: 23 Jul 2013

#1

Posted 23 July 2013 - 09:30 PM

Plz can some one say how to create object and after it move it or delete it and roate it in Visual studio VISUAL BASIC? confused.gif

Michael Wojtanis
  • Michael Wojtanis

    Rinepim

  • Members
  • Joined: 17 Jul 2013

#2

Posted 25 July 2013 - 09:00 AM

Look at "GTA Scripting" on google. This is page of JulioNib. He make scripts in VB.

XxproxXgammer
  • XxproxXgammer

    Player Hater

  • Members
  • Joined: 23 Jul 2013

#3

Posted 05 August 2013 - 06:57 PM

QUOTE (Michael Wojtanis @ Thursday, Jul 25 2013, 09:00)
Look at "GTA Scripting" on google. This is page of JulioNib. He make scripts in VB.

No there isnt anything about objects!!!!!

Michael Wojtanis
  • Michael Wojtanis

    Rinepim

  • Members
  • Joined: 17 Jul 2013

#4

Posted 14 August 2013 - 06:34 PM

Oh so... I do not know much about VB but first i think You need to create a GTA.Object value. All should looks like that:

Private myObject As GTA.Object // Create a value in RAM to use for Script
myObject = GTA.World.CreateObject(new Model(#1234567), Player.Character.GetOffsetPosition(new Vector3(0,5F,0))) // create object in world, 5 meters on front, model - this is mean Hash code of object, google it and at the end - save created object on "myObject"
myObject.Rotation = new Vector3(0,1.75555F,0) // rotation, do not remeber what is roll etc
myObject.Position = new Vector3(0, 0, 0) // position on map! CENTER! Not on player
myObject.NoLongerNeeded() // I found the Game just keep information about object also if this not exist. This allow to drop some RAM from game. Tested and this give some improve for big object scripts Object will exist but game can destroy it if You will be too far
myObject.Delete() // Delete object from game and RAM. Will not exist.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users