IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Solid objects

 how to remove it
 
JACK JONES  
Posted: Sunday, Jul 29 2012, 18:08
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Hey there. I need to know is there a way to remove (I mean destroy) a solid objects from the game created by this opcode:
CODE
029B: 0@ = init_object #OD_CELLDOOR02 at 384.098 -505.893 9.68

Of course I tried:
CODE
03AE: remove_objects_from_cube 300.0 -600.0 0.0 400.0 -400.0 40.0  
0108: destroy_object 0@

The problem with the opcode 0108 is that the solid objects are defined inside the main.scm with a global variables and I need all this for CLEO and we all know that he (I said he not it tounge2.gif) hates globals. Anyway I became desperate and decided to put the same global variable of the solid object from the main.scm to the opcode 0108 inside a CLEO but the object was still there - the opcode 0108 was unable to recognize that solid object because it was inside the main.scm but not in CLEO thread. Any suggestions?

This post has been edited by JACK JONES on Sunday, Jul 29 2012, 18:15
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Aug 2 2012, 07:35
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



U R Free to use Global var in Cleo as long as U Know what R U doing,
Users WebsitePM
  Top
 

 
spaceeinstein  
Posted: Thursday, Aug 2 2012, 08:50
Quote Post


巧克力
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




CLEO doesn't hate globals. Coders that use globals indiscriminately break the game. If you already know the exact variable, then you're fine using it.
Users WebsitePM
  Top
 

 
JACK JONES  
Posted: Thursday, Aug 2 2012, 10:54
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



I understand that I can't use an existing numbers of global variables from the main.scm in CLEO but I tried anyway - I looked into the main.scm and found the object number. Then I put that global variable with the same number inside CLEO and that didn't help either - the object just can't be removed via CLEO - only in main.scm.

This post has been edited by JACK JONES on Thursday, Aug 2 2012, 11:00
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Aug 2 2012, 17:31
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



I don't think so,
let me check

---------------
Its Working as good as it should
ahhh nevermind

This post has been edited by Ashwin the new boy on Friday, Aug 3 2012, 01:21
Users WebsitePM
  Top
 

 
Deji  
Posted: Thursday, Aug 2 2012, 17:48
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



QUOTE (JACK JONES @ Thursday, Aug 2 2012, 10:54)
I understand that I can't use an existing numbers of global variables from the main.scm in CLEO but I tried anyway - I looked into the main.scm and found the object number. Then I put that global variable with the same number inside CLEO and that didn't help either - the object just can't be removed via CLEO - only in main.scm.

Tried decompiling your own script to see whether Sanny compiled the var number right?
Users WebsitePM
  Top
 

 
JACK JONES  
Posted: Thursday, Aug 2 2012, 18:27
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



EDITED: I decompiled the main.scm again and the number was diferent so the problem is solved. I made a very stupid mistake - what a waste of time for nothing.


This post has been edited by JACK JONES on Thursday, Aug 2 2012, 19:41
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG