Quantcast

Jump to content

» «
Photo

[Q]Spawning Objects

4 replies to this topic
Marduk123
  • Marduk123

    Rat

  • Members
  • Joined: 10 Jul 2007

#1

Posted 30 January 2009 - 12:44 PM

hello, im asking HELP...not a script damnit dont delete this ...
i need help i try spawn object
and i dont seems able to make the object spawn..


Public Sub New()
WatchKey(Keys.NumPad8)
End Sub

Protected Overrides Sub KeyDown(ByVal key As System.Windows.Forms.Keys)
Dim bc2_fence_01 As GTA.Object" = World.CreateGTA.Object"("bc2_fence_01", Player.Character.Position)
End Sub

End Class

what could i do wrong, im noob...and trying to learn

boomer678
  • boomer678

    Mark Chump

  • Members
  • Joined: 02 Jan 2009

#2

Posted 30 January 2009 - 09:31 PM

This using Visual Basic?

boomer678
  • boomer678

    Mark Chump

  • Members
  • Joined: 02 Jan 2009

#3

Posted 30 January 2009 - 10:31 PM


Also where are models located?

boomer678
  • boomer678

    Mark Chump

  • Members
  • Joined: 02 Jan 2009

#4

Posted 30 January 2009 - 10:41 PM

QUOTE (Marduk123 @ Jan 30 2009, 12:44)
hello, im asking HELP...not a script damnit dont delete this ...
i need help i try spawn object
and i dont seems able to make the object spawn..


  Public Sub New()
    WatchKey(Keys.NumPad8)
  End Sub

  Protected Overrides Sub KeyDown(ByVal key As System.Windows.Forms.Keys)
    Dim bc2_fence_01 As GTA.Object" = World.CreateGTA.Object"("bc2_fence_01", Player.Character.Position)
  End Sub

End Class

what could i do wrong, im noob...and trying to learn



Public Sub New()
WatchKey(Keys.NumPad8)
End Sub

Protected Overrides Sub KeyDown(ByVal key As System.Windows.Forms.Keys)
World.CreateObject("bc2_fence_01", Player.Character.Position.Around(2.0F))
Game.DisplayText("Test spawning fence")
End Sub

End Class

There. I made that and it works. Just the fence isnt a real Model, you can just drive through it / walk through it
it works though

Marduk123
  • Marduk123

    Rat

  • Members
  • Joined: 10 Jul 2007

#5

Posted 31 January 2009 - 06:02 AM

i will try with other thing smile.gif
thanks a lot you made the work ....
sad.gif
you have the cookie.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users