Question Is there a script for spawning ai in sp??

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
ive been looking for a mod/script for something like this, never found it. if anyone can help please do!
 

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878
ive been looking for a mod/script for something like this, never found it. if anyone can help please do!

thats how i did it for my SP Survival Mod
C:
spawnBotSP(spawner_number)
{
    spawners = GetSpawnerArray();
    bot = spawners[spawner_number] stalingradspawn();
}
 

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
Thank you so much!!! please excuse my lack of modding knowledge but is that for the config file? im very new to this im very sorry. atm im trying to figure out how to spawn them with a bind
 
Last edited:

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
thats how i did it for my SP Survival Mod
C:
spawnBotSP(spawner_number)
{
    spawners = GetSpawnerArray();
    bot = spawners[spawner_number] stalingradspawn();
}
i tried binding this in the console: ai_spawn actor_ally_tf_141_arctic_AR
it says it isnt an actor or entity then it gave me a list of npc script templates or examples. is there any way to bind spawning ai in sp like in museum?

or like this:
 

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878
i tried binding this in the console: ai_spawn actor_ally_tf_141_arctic_AR
it says it isnt an actor or entity then it gave me a list of npc script templates or examples. is there any way to bind spawning ai in sp like in museum?

or like this:

you need to do it with GSC
 

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878
Here is a little example script
 

Attachments

  • bot_spawning_test_script.rar
    29.6 KB · Views: 414

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878

Attachments

  • patch.rar
    31.7 KB · Views: 312

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
Nope
You need to change that in the script
yeah my bad i made a major typo i meant to ask for the type of character to be spawned do i use the model string or character gsc?
 

Attachments

  • 2020-03-08 (1).png
    2020-03-08 (1).png
    63.3 KB · Views: 299

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
Nope
You need to change that in the script
i dont know what im doing wrong i removed the gsc file and left the two in there but whenever i compile it with ff.compiler it doesnt work or when i view it with ff viewer it shows nothing but the file i made is 32 kb what am i doing wrong? can you maybe show me where ally characters go in the script?
 
Last edited:

Mind_the_assassin

Insane-Known Member
Messages
25
Reaction score
0
Points
356
Nope
You need to change that in the script
so i did this, would something like that work or does it all need to be by hand? all i wanna learn is how to change which ai is being spawned, and how to properly create a patch, because every one i made with ff compiler doesnt work as i said before im very new to modding and scripting and this is something ive always wanted to do for the past 3 years, ive tried to make small edits and save them but it never works id really appreciate it if you showed me how its done or if someone in the community makes a tutorial. - M.T.A.
2020-03-08 (9).png
2020-03-08 (10).png
2020-03-08 (7).png
 

Attachments

  • _load.gsc
    132.8 KB · Views: 211
  • test_script.gsc
    1.9 KB · Views: 242
Last edited:

P!X

Head Moderator
Staff member
Head Staff Team
Messages
408
Reaction score
590
Points
878
so i did this, would something like that work or does it all need to be by hand? all i wanna learn is how to change which ai is being spawned, and how to properly create a patch, because every one i made with ff compiler doesnt work as i said before im very new to modding and scripting and this is something ive always wanted to do for the past 3 years, ive tried to make small edits and save them but it never works id really appreciate it if you showed me how its done or if someone in the community makes a tutorial. - M.T.A.
View attachment 3322View attachment 3323View attachment 3321
Add me on discord P!X#6835
 
Top