Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
yair1221

Game Crashes With 'Move Object'

Recommended Posts

yair1221

OHHHH

anyway not to?

maybe ill use global variables

like $BASEGATE = object.create etc...

and $HUMMER = car.create etc...

and then before the clear command i will use object.storepos etc...

and car.storepos etc...

and AFTER the clear command

$HUMMER = car.create

$BASEGATE = object.create

Share this post


Link to post
Share on other sites
TheSiggi

never use globals... dozingoff.gif

doesn't matter if the cars were handled by a local or global var...yeah the system sounds promissing

Share this post


Link to post
Share on other sites
yair1221
never use globals... dozingoff.gif

doesn't matter if the cars were handled by a local or global var...yeah the system sounds promissing

sorry... dontgetit.gif

didnt understand a word

why not to use global variables?

what is so bad about them?

ill create the car in a different thread and save its position in this thread

and what is so promising about the system?

Share this post


Link to post
Share on other sites
james227uk

You shouldn't even attempt writing a cleo script before you know the rules.

 

 

Never use custom global variables in your CLEO-scripts ($car, $foo, $blahblah, etc), or your script will work incorrectly.

 

 

It can cause conflicts with the SCM

Share this post


Link to post
Share on other sites
yair1221

ohhh

is there a way to COMPLETELY prevent peds from entering specific areas?

Share this post


Link to post
Share on other sites
TheSiggi
dozingoff.gif ..... use the opcode search...... how about searching for 'forbidden peds'

Share this post


Link to post
Share on other sites
yair1221

trying now,no need to be sarcastic sad.gif

edit: doesnt work

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04      DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN'01E8: create_forbidden_for_cars_cube_cornerA 2233.65 1542.19 10.5399 cornerB 2375.945 -1239.356 10.5399  022B: create_forbidden_for_peds_cube_cornerA 2233.65 1542.19 10.5399 cornerB 2375.945 -1239.356 10.5399  01F0: set_max_wanted_level_to 6 set_wb_check_to 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 Camera.SetAtPos(2488.56, -1666.84, 13.38)$PLAYER_CHAR = Player.Create(#NULL, 2314.0, 1458.5, 11.0)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group Camera.SetBehindPlayerset_weather 0 wait 0 Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "DOGTAG", "NECK", 13)Player.SetClothes($PLAYER_CHAR, "DENIMSRED", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "SPORTJACK", "TRACKYTOP1", Torso)Player.SetClothes($PLAYER_CHAR, "WATCHZIP1", "WATCH", 14)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = True 02A7: $AREA69 = create_icon_marker_and_sphere 62 at 94.4625 1920.8641 18.0745 radius 2.0  fade 1 0 select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2314.0 1458.5 11.0 angle 0 town_number 0 016D: restart_if_busted_at 2314.0 1458.5 11.0 angle 0 town_number 0  0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here $DEFAULT_WAIT_TIME = 250 03E6: remove_text_boxwait $DEFAULT_WAIT_TIME :MAIN_500wait $DEFAULT_WAIT_TIME 00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes jump @MAIN_500 

 

Edited by yair1221

Share this post


Link to post
Share on other sites
TheSiggi

 

btw... "doesn't work" is a pretty informative comment... sarcasm.gif

we are coders... no visionarys... so it'd be cool if you could give us some more precisly information

 

 

You used the cube thingy the wrong way.... its a cube (a*b*c), not a square...

 

I'm not sure but think CornerA is the lower corner on the left and cornerB the upper one on the right side ... (so by connecting cornerA and cornerB the result would be something like this...

just the other way round result

 

 

Edited by The_Siggi

Share this post


Link to post
Share on other sites
yair1221

mercie_blink.gifmercie_blink.gifmercie_blink.gif

WTF?

never mind

id rather deal with the peds

confused.gif

Share this post


Link to post
Share on other sites
TheSiggi

 

mercie_blink.gif  mercie_blink.gif  mercie_blink.gif

WTF?

never mind

id rather deal with the peds

confused.gif

022B and 01E8 use a cube... their size is customized by its space diagonal

 

just use the ground coord and add 10.0 to it to define the upper corner

Share this post


Link to post
Share on other sites
yair1221

to which one do I add the 10.0?

Share this post


Link to post
Share on other sites
yair1221

refresh

what am i supposed to do?

Share this post


Link to post
Share on other sites
ZAZ

 

refresh

what am i supposed to do?

You should define a cube (you know what cube means?)

and therefor you must give the coords of 2 corners

a lower corner in north/west and a upper corner in south/east

 

but you made only 2 corners in the middle height:

 

01E8: create_forbidden_for_cars_cube_cornerA 2233.65 1542.19 10.5399 cornerB 2375.945 -1239.356 10.5399 

022B: create_forbidden_for_peds_cube_cornerA 2233.65 1542.19 10.5399 cornerB 2375.945 -1239.356 10.5399

Share this post


Link to post
Share on other sites
yair1221

oh

BTW: if i forbid it for cars

MY cars will disappear too?

Share this post


Link to post
Share on other sites
TheSiggi
I told you what to do... I only messed the corners :S

Share this post


Link to post
Share on other sites
yair1221

its still doesnt works

i made sure all the coordinates and heights are good

but peds are still wondering freely

Share this post


Link to post
Share on other sites
ZAZ

 

its still doesnt works

i made sure all the coordinates and heights are good

but peds are still wondering freely

show the script

Share this post


Link to post
Share on other sites
yair1221
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04      DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN' 01F0: set_max_wanted_level_to 6 01E8: create_forbidden_for_cars_cube_cornerA 2233.65 1542.19 10.0 cornerB 2375.945 -1239.356 200.0 022B: create_forbidden_for_peds_cube_cornerA 2233.65 1542.19 10.0 cornerB 2375.945 -1239.356 200.0set_wb_check_to 0 00C0: set_current_time_hours_to 8 minutes_to 0 04E4: unknown_refresh_game_renderer_at 2488.56 -1666.84 Camera.SetAtPos(2488.56, -1666.84, 13.38)$PLAYER_CHAR = Player.Create(#NULL, 2314.0, 1458.5, 11.0)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group Camera.SetBehindPlayerset_weather 0 wait 0 Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "DOGTAG", "NECK", 13)Player.SetClothes($PLAYER_CHAR, "DENIMSRED", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "SPORTJACK", "TRACKYTOP1", Torso)Player.SetClothes($PLAYER_CHAR, "WATCHZIP1", "WATCH", 14)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = True 02A7: $AREA69 = create_icon_marker_and_sphere 62 at 94.4625 1920.8641 18.0745 radius 2.0  fade 1 0 select_interior 0 0629: change_integer_stat 181 to 4 016C: restart_if_wasted_at 2314.0 1458.5 11.0 angle 0 town_number 0 016D: restart_if_busted_at 2314.0 1458.5 11.0 angle 0 town_number 0  0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here $DEFAULT_WAIT_TIME = 250 03E6: remove_text_boxwait $DEFAULT_WAIT_TIME :MAIN_500wait $DEFAULT_WAIT_TIME 00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutes jump @MAIN_500 

 

Share this post


Link to post
Share on other sites
ZAZ

That's a long field. I don't know what you plan.

Create a cube for the street between Caligulas and the big garage

and don't set the codes at the beginning

try the script below

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007DEFINE OBJECTS 1DEFINE OBJECT SANNY BUILDER 3.04      DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS -1 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0{$VERSION 3.1.0027}//-------------MAIN---------------thread 'MAIN'01F0: set_max_wanted_level_to 6set_wb_check_to 000C0: set_current_time_hours_to 8 minutes_to 004E4: unknown_refresh_game_renderer_at 2488.56 -1666.84Camera.SetAtPos(2488.56, -1666.84, 13.38)$PLAYER_CHAR = Player.Create(#NULL, 2314.0, 1458.5, 11.0)$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)07AF: $PLAYER_GROUP = player $PLAYER_CHAR groupCamera.SetBehindPlayerset_weather 0wait 0Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.SetClothes($PLAYER_CHAR, "DOGTAG", "NECK", 13)Player.SetClothes($PLAYER_CHAR, "DENIMSRED", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "SPORTJACK", "TRACKYTOP1", Torso)Player.SetClothes($PLAYER_CHAR, "WATCHZIP1", "WATCH", 14)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = True02A7: $AREA69 = create_icon_marker_and_sphere 62 at 94.4625 1920.8641 18.0745 radius 2.0  fade 1 0select_interior 00629: change_integer_stat 181 to 4016C: restart_if_wasted_at 2314.0 1458.5 11.0 angle 0 town_number 0016D: restart_if_busted_at 2314.0 1458.5 11.0 angle 0 town_number 0  0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here$DEFAULT_WAIT_TIME = 25003E6: remove_text_boxwait 100001E8: create_forbidden_for_cars_cube_cornerA 2078.2681 1515.5537 0.0 cornerB 2420.8755 1544.5804 50.0022B: create_forbidden_for_peds_cube_cornerA 2078.2681 1515.5537 0.0 cornerB 2420.8755 1544.5804 50.0:MAIN_500wait $DEFAULT_WAIT_TIME00BF: $TIME_HOURS = current_time_hours, $TIME_MINS = current_time_minutesjump @MAIN_500

 

 

BTW. You should set DEFINE EXTERNAL_SCRIPTS to -1 if there isn't any Extern script in your script

If it is set to 0, sanny want to create a script.img with the dummy file aaa.scm

Share this post


Link to post
Share on other sites
yair1221

hh now im gonna try that

im building an hq for my mod in that huge parking lot up there

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.