Página 1 de 1
[SA/Help] Script for spawning peds on the helicarrier not working
Enviado: 14 Mar 2021, 22:00
por NARUTO123
Código: Selecionar tudo
: Army_1
wait 10
if
Player.Defined ($ PLAYER_CHAR)
if
$ ONMISSION == 0
else_jump @ Army_1
if
wait 0
if
00FE: actor $ PLAYER_ACTOR sphere 0 in_sphere 1817.566 -1353.1942 519.3 radius 150.0 150.0 150.0
else_jump @ Army_1
wait 100
01F0: set_max_wanted_level_to 0
Model.Load (#ARMY)
Model.Load (# AK47)
038B: load_requested_models
: Army_3
wait 0
if and
Model.Available (#ARMY)
Model.Available (# AK47)
else_jump @ Army_3
wait 111
$ SHEILD1 = Actor .Create (# ARMY, 1817.566, -1353.1942,519.3) // ARMY1
Actor.Angle ($ SHEILD1) = 182.5791
0446: set_actor $ SHEILD1 dismemberment_possible 0
Actor.Health ($ SHEILD1) = 1200
01B2: give_actor $ SHEILD1 weapon 30 ammo 5000 // Load the weapon model before using this
wait 500
0A93: end custom_thread
Can you FIX It it isn't spawning peds on the helicarrier (made by my friend)
Is it possible to fix it
If yes can make an example by editing it
Please 🥺
Re: I need help In this
Enviado: 15 Mar 2021, 22:56
por Male01
I am someone with no actual skills in making scripts but I still found several problems that prevented your script from working. Below are some of these issues explained along with an edited script that works. You should consider reading both.
Explanation:
The script you provided is full of errors involving the spacing of characters and this can be noticed as soon as you look at the first line.
: Army_1
should be
:Army_1
It seems you want to create people aboard the USS Octane at the Easter Basin Naval Base in San Fierro. These are the coordinates you showed:
1817.566, -1353.1942, 519.3
The positive number followed by the negative number reveal that this script is intended for the southwest quadrant of the map, which would be in Los Santos.
1817.566, -1353.1942, 19.3
Upon removing the excessive height that is around 1.58 times higher than the Library Tower, the script begins to work at the Los Angeles County Museum of Art. This can be seen by driving on the road that separates Glen Park from Downtown Los Santos and looking west upon reaching the intersection that is northwest from the skate park.
Upon correcting the previously mentioned spacing errors, the game will crash because you forgot to specify the type of actor that you want.
The purpose of your script is unknown but 0@ will replace $SHEILD1 because it could possibly ruin other scripts if not used carefully. A better explanation can be found in the tutorials posted in this forum.
$ SHEILD1 = Actor .Create (# ARMY, 1817.566, -1353.1942,519.3)
should be
0@ = Actor.Create(Cop, #ARMY, 1817.566, -1353.1942, 19.3)
You should probably mention more details about this script such as its purpose or even if you were trying to spell "shield". Based on the limited information you provided, it seems like you are trying to record a short scene for a video and needed actors to decorate your filming location.
Upon completing all of the previously mentioned edits, it seems your script makes a soldier appear at the museum and just stand still with a weapon while your wanted level is disabled. The soldier attacks criminals and fights back if you are the one attacking them. Upon being killed, their body remains in its location without ever disappearing.
Since it is apparent that you would want a different location for this script, you should use Euryopa to find the correct coordinates.
Edited script:
Código: Selecionar tudo
{$CLEO .cs}
0000: NOP
thread 'Army'
:Army_1
wait 10
if
Player.Defined($PLAYER_CHAR)
if
$ONMISSION == 0
else_jump @Army_1
if
wait 0
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 1817.566 -1353.1942 19.3 radius 150.0 150.0 150.0
else_jump @Army_1
wait 100
01F0: set_max_wanted_level_to 0
Model.Load(#ARMY)
Model.Load(#AK47)
038B: load_requested_models
:Army_3
wait 0
if and
Model.Available(#ARMY)
Model.Available(#AK47)
else_jump @Army_3
wait 111
0@ = Actor.Create(Cop, #ARMY, 1817.566, -1353.1942, 19.3) // ARMY1
Actor.Angle (0@) = 182.5791
0446: set_actor 0@ dismemberment_possible 0
Actor.Health (0@) = 1200
01B2: give_actor 0@ weapon 30 ammo 5000 // Load the weapon model before using this
wait 500
0A93: end custom_thread
Someone with more knowledge in this subject may appear later with a better solution but you should still read the tutorials featured in this site for more information.
Re: I need help In this [SOLVED]
Enviado: 16 Mar 2021, 03:12
por NARUTO123
Male01 escreveu: ↑15 Mar 2021, 22:56
I am someone with no actual skills in making scripts but I still found several problems that prevented your script from working. Below are some of these issues explained along with an edited script that works. You should consider reading both.
Explanation:
The script you provided is full of errors involving the spacing of characters and this can be noticed as soon as you look at the first line.
: Army_1
should be
:Army_1
It seems you want to create people aboard the USS Octane at the Easter Basin Naval Base in San Fierro. These are the coordinates you showed:
1817.566, -1353.1942, 519.3
The positive number followed by the negative number reveal that this script is intended for the southwest quadrant of the map, which would be in Los Santos.
1817.566, -1353.1942, 19.3
Upon removing the excessive height that is around 1.58 times higher than the Library Tower, the script begins to work at the Los Angeles County Museum of Art. This can be seen by driving on the road that separates Glen Park from Downtown Los Santos and looking west upon reaching the intersection that is northwest from the skate park.
Upon correcting the previously mentioned spacing errors, the game will crash because you forgot to specify the type of actor that you want.
The purpose of your script is unknown but 0@ will replace $SHEILD1 because it could possibly ruin other scripts if not used carefully. A better explanation can be found in the tutorials posted in this forum.
$ SHEILD1 = Actor .Create (# ARMY, 1817.566, -1353.1942,519.3)
should be
0@ = Actor.Create(Cop, #ARMY, 1817.566, -1353.1942, 19.3)
You should probably mention more details about this script such as its purpose or even if you were trying to spell "shield". Based on the limited information you provided, it seems like you are trying to record a short scene for a video and needed actors to decorate your filming location.
Upon completing all of the previously mentioned edits, it seems your script makes a soldier appear at the museum and just stand still with a weapon while your wanted level is disabled. The soldier attacks criminals and fights back if you are the one attacking them. Upon being killed, their body remains in its location without ever disappearing.
Since it is apparent that you would want a different location for this script, you should use Euryopa to find the correct coordinates.
Edited script:
Código: Selecionar tudo
{$CLEO .cs}
0000: NOP
thread 'Army'
:Army_1
wait 10
if
Player.Defined($PLAYER_CHAR)
if
$ONMISSION == 0
else_jump @Army_1
if
wait 0
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 1817.566 -1353.1942 19.3 radius 150.0 150.0 150.0
else_jump @Army_1
wait 100
01F0: set_max_wanted_level_to 0
Model.Load(#ARMY)
Model.Load(#AK47)
038B: load_requested_models
:Army_3
wait 0
if and
Model.Available(#ARMY)
Model.Available(#AK47)
else_jump @Army_3
wait 111
0@ = Actor.Create(Cop, #ARMY, 1817.566, -1353.1942, 19.3) // ARMY1
Actor.Angle (0@) = 182.5791
0446: set_actor 0@ dismemberment_possible 0
Actor.Health (0@) = 1200
01B2: give_actor 0@ weapon 30 ammo 5000 // Load the weapon model before using this
wait 500
0A93: end custom_thread
Someone with more knowledge in this subject may appear later with a better solution but you should still read the tutorials featured in this site for more information.
I am actually making a S.H.E.I.L.D base
Hellicarrier it is present in los santos avengers movies
So I needed the hellicarrier coords that I what I used
Ok I will use it thanks

for help
You helped me when no one else did
But that does it mean I can't add peds on custom location like hellicarriers location
That is higher in height than the Tower
Re: I need help In this
Enviado: 16 Mar 2021, 15:54
por Male01
I was just joking about having little knowledge about your situation and was trying to confirm my actual thoughts.
Creating a soldier with an AK47 clearly indicates that you have replaced skins or weapons. Upon checking the coordinates, it is clear that you have some floating map mod, and since I don't have that mod, the height was lowered just for me to see that it works. Your chosen location appears to have the purpose of either keeping obstacles out of the way or having a scenic view of Los Santos. The way you mentioned the carrier combined with the name you gave to the created actor were the biggest hints of what you were working on. Setting the maximum wanted level to zero reveals that you want certain behaviors to be present from your actor along with the fact that you are giving them high health and disabling their ability to be dismembered. Even without the fact that this is a help thread, it appears that you are making tests with your current progress with your mods.
If you look at the details about my account, you will realize that I have always been viewing this site and that I was bored until you appeared with this thread. Also, the fact that I keep calling this script yours is supposed to refer to both you and your friend rather than just you.
All of the previously mentioned details about your mod made me curious about your work and made me try to get the information in the way that you saw me do it. Mentioning the story about what you are trying to do can often be important when making a script work in the intended way. In this case, it was clear that all the characteristics of that script were for an interesting project that caught my attention.
As an example of stories, I have what currently seems to be the first and only tiller fire truck mod that is fully in SA style but the mods to give it sirens and its trailer are both glitched with no better alternatives existing. I am also experimenting with making a zombie script that actually tries to look like reanimation but I lack skills in making scripts and cant get cops to stop ignoring the zombies.
The real surprise here was to find this thread marked as solved when you replied. For once an issue gets resolved instead of me having to settle with glitches and crashes from my unique modified mods.
Re: I need help In this
Enviado: 17 Mar 2021, 21:55
por NARUTO123
Male01 escreveu: ↑16 Mar 2021, 15:54
I was just joking about having little knowledge about your situation and was trying to confirm my actual thoughts.
Creating a soldier with an AK47 clearly indicates that you have replaced skins or weapons. Upon checking the coordinates, it is clear that you have some floating map mod, and since I don't have that mod, the height was lowered just for me to see that it works. Your chosen location appears to have the purpose of either keeping obstacles out of the way or having a scenic view of Los Santos. The way you mentioned the carrier combined with the name you gave to the created actor were the biggest hints of what you were working on. Setting the maximum wanted level to zero reveals that you want certain behaviors to be present from your actor along with the fact that you are giving them high health and disabling their ability to be dismembered. Even without the fact that this is a help thread, it appears that you are making tests with your current progress with your mods.
If you look at the details about my account, you will realize that I have always been viewing this site and that I was bored until you appeared with this thread. Also, the fact that I keep calling this script yours is supposed to refer to both you and your friend rather than just you.
All of the previously mentioned details about your mod made me curious about your work and made me try to get the information in the way that you saw me do it. Mentioning the story about what you are trying to do can often be important when making a script work in the intended way. In this case, it was clear that all the characteristics of that script were for an interesting project that caught my attention.
As an example of stories, I have what currently seems to be the first and only tiller fire truck mod that is fully in SA style but the mods to give it sirens and its trailer are both glitched with no better alternatives existing. I am also experimenting with making a zombie script that actually tries to look like reanimation but I lack skills in making scripts and cant get cops to stop ignoring the zombies.
The real surprise here was to find this thread marked as solved when you replied. For once an issue gets resolved instead of me having to settle with glitches and crashes from my unique modified mods.
Welll welll check my other thread where I was talking about the mounted minigun from "air raid" to attach on a building and make it usuable using cleo($player_actor)
I further worked on script added pilots on the hellicarrier using the create special actor method and made them look like they are doing maintenance of jets and quinjets