FAQFAQ    Board RulesBoard Rules    SearchSearch    LotteryLottery    RouletteRoulette    UsergroupsUsergroups
     RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Shop    Log inLog in 
View posts since last visitView your postsView unanswered posts

How to insert weapons into script using Bscript

 
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Tools
View previous topic :: View next topic  
Author Message
SooperK

Junior Member
Junior Member


Joined: 10 Nov 2014
Posts: 41
Location: Jennewa, Airdenor
80 Bank Notes
Items

PostPosted: Mon Dec 02, 2019 1:34 am    Post subject: How to insert weapons into script using Bscript Reply with quote

I've been trying to add various weapons into different missions throughout the game by using BSV6, but I do not understand how to insert the weapon as I believe it needs a script? Under the insert tab, there is Human, Car, Truck, Police car, light, sound etc. and "other". "Other" to me makes the most sense, but it will not allow me to put a model. Thanks for any help!
Back to top
View user's profile Send private message
MatteoCapoletti

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 05 Mar 2013
Posts: 530

1039 Bank Notes
Items

PostPosted: Mon Dec 02, 2019 10:46 pm    Post subject: How to insert weapons into script using Bscript Reply with quote

The Other option in BSV6 is for scripts only

All weapons are added into the game by scripts (look at your freeitaly scene2.bin file and in the start script to see how you can ad guns to people)

if you want to place a gun that people can pick up put the model in the location you want and then use a script to allow them to get the gun. You can use a destroy model command in that script, then the gun will disappear when they pick it up

those are the basics, sorry i couldn't be more specific but I am not in a place where I can look that stuff up and memory is rusty

But it makes sense that if the game can add a model with a script, so should we. But we can't at least with BSV.
_________________

Well I am back Jack Wink
My Youtube Page!
Back to top
View user's profile Send private message Visit poster's website
SooperK

Junior Member
Junior Member


Joined: 10 Nov 2014
Posts: 41
Location: Jennewa, Airdenor
80 Bank Notes
Items

PostPosted: Mon Dec 02, 2019 11:39 pm    Post subject: How to insert weapons into script using Bscript Reply with quote

Hey Matteo, thanks so much. I think I've done something similar to that in the past and had success but never tried it with a weapon. It makes sense though by adding the script and using the locations (with the help of mwe) Smile
Back to top
View user's profile Send private message
MatteoCapoletti

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 05 Mar 2013
Posts: 530

1039 Bank Notes
Items

PostPosted: Mon Dec 02, 2019 11:58 pm    Post subject: Re: How to insert weapons into script using Bscript Reply with quote

SooperK wrote:
. I think I've done something similar to that in the past and had success but never tried it with a weapon. It makes sense though by adding the script and using the locations (with the help of mwe) Smile


Exactly
_________________

Well I am back Jack Wink
My Youtube Page!
Back to top
View user's profile Send private message Visit poster's website
flovivi

Junior Member
Junior Member


Joined: 22 Dec 2014
Posts: 57

309 Bank Notes
Items

PostPosted: Tue Dec 03, 2019 6:16 pm    Post subject: How to insert weapons into script using Bscript Reply with quote

I think you have to place the gun model onto the map, best works with MWE, and then write a small script. The command that creates a gun from a model is called createweaponfromframe.

What I always did is check out some scripts from other missions and copy paste them into your mission. This command is used in a lot of missions that let you pick up some guns, so you will surely find some examples.

The tools I always used to create mods were DCED (very unstable, always make backup before open and save) and MWE.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Mafiascene.com Forum Index -> Ask a Modder - Tools All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Generation Time: 0.021 | Queries: 18