Please post mod releases in the Mod Showroom
Please read the Official Modification Forum Rules & Procedures BEFORE posting!
The following topics contain extremely useful data relating to the editing of missions and mission scripting:
If you are a begininer to mission coding, then please read Tutorial Links and Mission Coding Information.
Requests are to be made in the pinned topic.
About a stripped Main.scm
Posted 02 July 2010 - 09:49 PM
For example: The hangar doors in V. Meadows are still moving when I am there
I wanted to create a special sphere for that
How do I change stuff like that?
Posted 02 July 2010 - 09:53 PM
|QUOTE (yair1221 @ Jul 2 2010, 23:49)|
|For example: The hangar doors in V. Meadows are still moving when I am there|
Because garages are defined in map files, and its opening is hardcoded.
Try to add this somewhere in script:
Edited by SilentPL, 02 July 2010 - 10:01 PM.
Posted 04 July 2010 - 10:55 AM
But I need to change the garage itself
For example every time the garage will open there will be a sound
All the options I could see were these:
garage.IsClosed() - Only a check,not helping me
garage.IsOpen() - ,,
garage.Activate() - Have no idea what does it means,perhaps if the hangar ever opens or something,still not helping
garage.Deactivate() - ,,
garage.ChangeType() - Dont know what it does
garage.Close() - Possible future applications,not helping right now
garage.Close() - ,,
garage.SetToAcceptCar() - That could be useful,but not helping me right now
How am I supposed to make a sound when the hangars are open?
Which command will be helpful?
Edited by yair1221, 04 July 2010 - 11:06 AM.
Posted 04 July 2010 - 12:00 PM
|There are 50 garages in the game. Each garage has:- |
Location in game
Location of door
Direction it looks
Coordinates of lower left corner
Coordinates of upper right corner,
Usable by the player
Which property (safe house) it belongs
Number of vehicles which can be parked inside
The door state (closed, opening, open and closing)
These are found in the garage object of 212 bytes. The memory locations where the garages start are:
0x96C048 (start of first garage)
+0xD4 (offset for second garage - offset this much again for third garage, again for fourth, etc.)
0x96C120 (start of final garage)
Here is the known garage offsets:
+77 = [byte] Garage Door State values:
0 = closed
1 = open
2 = closing
3 = opening
Posted 04 July 2010 - 01:09 PM
Im Talking About A CLEO Code Not About Changing The Game's Code Itself
Posted 04 July 2010 - 01:16 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users