Quantcast

Jump to content

» «
Photo

help with Exemple Newopcodes

5 replies to this topic
josesbj
  • josesbj

    AssistenteLuis Veículos Especiais e Adaptado

  • Members
  • Joined: 31 Dec 2009

#1

Posted 15 April 2014 - 01:15 PM

hello I'm trying to use an example, but this closing the game, would help
/*
  NewOpcodes 2.0
  Example script: Vehicle Dummy
  Creates corona for each vehicle dummy.
*/

{$CLEO}
{$I stdc}

while true
    wait 0
    {$I forplayercar}
    0A97: s = car veh struct
    for i = 0 to 14      
        0D5F: get_vehicle veh Test1_dummy i position LOCAL to x y z invert_x false // IF and SET
        if or
            x <> 20.0
            y <> 45.0
            z <> 0.0
        then
        end
    end
    {$I for_end}
end

 


Shmoopy
  • Shmoopy

    Thug (͡° ͜ʖ ͡°)

  • Members
  • Joined: 16 Jun 2009
  • None

#2

Posted 16 April 2014 - 06:58 PM

Try this , u'll need the NewOpcodes mod of course :

Spoiler

josesbj
  • josesbj

    AssistenteLuis Veículos Especiais e Adaptado

  • Members
  • Joined: 31 Dec 2009

#3

Posted 17 April 2014 - 09:35 PM

error10154144_240962156087373_741049610137630


Silent
  • Silent

    Moderating Cookie Monster

  • Feroci Racing
  • Joined: 01 Feb 2010
  • Poland
  • Most Helpful [GTA] 2013
    Most Helpful [Modding] 2013
    Most Talented [Modding] 2013
    Best Map 2013 "ViceCityStories PC Edition"
    Best Vehicle 2013 "III Aircraft"
    Most Helpful [Modding] 2012
    Modder of the Year 2012

#4

Posted 17 April 2014 - 09:47 PM

Add 0000: at the top, before the while loop.

josesbj
  • josesbj

    AssistenteLuis Veículos Especiais e Adaptado

  • Members
  • Joined: 31 Dec 2009

#5

Posted 18 April 2014 - 12:52 AM

the GTA that was closing


Shmoopy
  • Shmoopy

    Thug (͡° ͜ʖ ͡°)

  • Members
  • Joined: 16 Jun 2009
  • None

#6

Posted 18 April 2014 - 08:47 AM

Maybe the 0D5F: opcode crashs the game , altough the script doesn't do anything except from getting all the vehicles pointers nearby , I assume that you want to get the xyz positions of the tires , right ?

Well , i think ( if I'm not mistaken ) that you can get them from these :

 

  • +1828 = Detachables1 Pos X
  • +1832 = Detachables1 Pos Y
  • +1836 = Detachables1 Pos Z
  • +1872 = Detachables2 Pos X
  • +1876 = Detachables2 Pos Y
  • +1880 = Detachables2 Pos Z
  • +1916 = Detachables3 Pos X
  • +1920 = Detachables3 Pos Y
  • +1924 = Detachables3 Pos Z
  • +1960 = Detachables4 Pos X
  • +1964 = Detachables4 Pos Y
  • +1968 = Detachables4 Pos Z




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users