|
 |
|
|
|
|
|
GTA Modification Forums
[Q]Adding things to GTA SA How to add hospitals, carlocations...
 |
|
 |
| |
HighD  |
Posted: Wednesday, May 30 2012, 14:51
|
Player Hater

Group: Members
Joined: Oct 19, 2011

|
Well, first at all, thanks for the very quick replie  But The problem is, that I've not much knowledge of all this, so I don't know how to create a pickup for example... it would help a lot, if you could give me a example code for making a pickup (is there any tutorial about how to make this? Would also help  ) I didn't know a car generator but I'll look around for one, thanks for the hint And for the modeling: I did already all the houses, they all exist, but I don't know how I arrive that they work (for example that I spawn at the hospital if I go dead...) And how do I have to edit paths.ipl Thanks and Greets HighD
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
HighD  |
Posted: Thursday, May 31 2012, 23:10
|
Player Hater

Group: Members
Joined: Oct 19, 2011

|
Thanks a lot at Ashwin, this was exactly the hint I needed  I'll try it out the next days. Only one more question: Where do I have to insert the code in the main.scm? Whithin the :Main1 or below the mains or doesn't it matter? Can I also make an external script? Oh, and I forgot one thing: I'd like to make a teleport point, like an elevator for getting on the roof of a building. What is the code for this and where to insert it? | QUOTE | | Most of the things you listed aren't usually created by code... |
It's like this: I made already the complete map, buildings are in game and they're working. Now I only need to code the rest. So I have to code an entrance for the safehouse, an entrance for the hotel, a spawnplace for weapons and so on  Thanks HighD EDIT: I think I found it: I have to insert the code to :INITIAL1 don't I? This post has been edited by HighD on Thursday, May 31 2012, 23:20
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Ashwin the new boy  |
|
I am The Most Confused Person

Group: Members
Joined: Nov 14, 2010


|
It doesn't matter where you put code, the main thing is Game read it if you are editing original Main.scm then I'll suggest you to find | CODE | | start_mission 1 // Intro |
insert a opcode after it | CODE | | Create_thread @HighD |
so it will look like | CODE | start_mission 1 // Intro Create_thread @HighD //Inserted Code create_thread @O4X4_1 create_thread @TAXI_L create_thread @FIRE create_thread @AMBULA create_thread @COP |
then search for this place & insert your Whole Code here | CODE | 04F8: define_police_trigger_type 6 if_player_with_wanted_level_in_rectangle -1112.0 -372.0 -1104.0 -364.0 spawn_policeA_at -1078.3 -337.0 headed_towards -1101.5 -339.4 spawn_policeB_at -1138.0 -348.4 headed_towards -1117.3 -346.3 end_thread
///////////// Put your code here ///////
//-------------Mission 1--------------- // Originally: Intro
:INTRO thread 'INTRO'
|
or you may make some cleo script for this work | QUOTE | | I'd like to make a teleport point, like an elevator for getting on the roof of a building. |
the code will be something like this | CODE | :0 wait 0 if ////: player $Player_char in_sphere 1 near_point X1 Y1 Z1 radius 2.5 2.5 2.5 jf @0 ////: put_player $player_char at X2 Y2 Z2 ////: set_player $player_char z_angle Angle1 wait 2500
:1 wait 0 if ////: player $Player_char in_sphere 1 near_point X2 Y2 Z2 radius 2.5 2.5 2.5 jf @0 ////: put_player $player_char at X1 Y1 Z1 ////: set_player $player_char z_angle Angle2 wait 2500 jump @0
|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|