Quantcast

Jump to content

» «
Photo

Help script gta sa

2 replies to this topic
kalonkas
  • kalonkas

    Player Hater

  • Members
  • Joined: 18 Aug 2012

#1

Posted 10 October 2013 - 05:48 PM

I have few questions.. 
why it doesnt change z angle to 90.0 ?
After gate opens it doesnt go up again, it just dissapears, if i drive away and come back there's no gate anymore.. 
 

 

// This file was decompiled using SASCM.ini published by http://gtag.gtagamin...opcode-database on 19.2.2012

 
{$VERSION 3.1.1000}
{$CLEO .cs}
 
//-------------MAIN---------------
0000: NOP 
 
:NONAME_2
wait 0 
if 
  Player.Defined($PLAYER_CHAR)
else_jump @NONAME_2 
if 
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2243.02 643.173 48.1076 radius 80.0 80.0 80.0 
else_jump @NONAME_2 
Model.Load(988)
038B: load_requested_models 
1@ = Object.Create(988, -2243.02, 643.173, 48.1076)
0177: set_object 1@ Z_angle_to 90.0
Object.Angle(1@) = 0
Object.ToggleInMovingList(1@) = True
2@ = 0 
 
:NONAME_126
wait 0 
if
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2243.02 643.173 48.1076 radius 15.0 15.0 15.0  
else_jump @NONAME_241 
 
:NONAME_182
wait 0 
if 
034E: move_object 1@ to -2243.02 643.178 44.3076 speed 0.0 0.0 0.04 collision_check 0 
else_jump @NONAME_182 
jump @NONAME_296 
 
:NONAME_241
if 
80FE:   not actor $PLAYER_ACTOR sphere 0 in_sphere -2243.02 643.173 48.1076 radius 80.0 80.0 80.0 
else_jump @NONAME_126 
jump @NONAME_352 
 
:NONAME_296
wait 0 
if and
00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -2243.02 643.173 48.1076 radius 30.0 30.0 30.0  
else_jump @NONAME_411
jump @NONAME_352 
 
:NONAME_352
wait 0 
if 
034E: move_object 1@ to -2243.02 643.173 48.3076 speed 0.0 0.0 0.04 collision_check 0 
else_jump @NONAME_352 
jump @NONAME_126 
 
:NONAME_411
if 
80FE:   not actor $PLAYER_ACTOR sphere 0 in_sphere -2243.02 643.173 48.1076 radius 80.0 80.0 80.0 
else_jump @NONAME_296 
jump @NONAME_466 
 
:NONAME_466
Object.RemoveReferences(1@)
jump @NONAME_2

 


Deji
  • Deji

    Coding like a Rockstar!

  • Feroci Racing
  • Joined: 24 Dec 2007
  • None

#2

Posted 10 October 2013 - 06:05 PM

0177: set_object 1@ Z_angle_to 90.0
Object.Angle(1@) = 0


You're setting the angle 90.0, but then you're setting it back to 0.

And don't decompile your own scripts, it's stupid.

kalonkas
  • kalonkas

    Player Hater

  • Members
  • Joined: 18 Aug 2012

#3

Posted 10 October 2013 - 06:11 PM

Oh, right.. lol
And it's not my script, i modified it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users