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 visit View your posts View unanswered posts

How to give an actor a Weapon in Bscriptview?

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

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 25

24 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 2:59 pm    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

Hello. I'm just new to modding and i know how to place enemies.
But i need to give them some weapons.
How can i Give the actors some weapons?
Back to top
View user's profile Send private message
T3mas1

Member
Member


Joined: 11 Jul 2015
Posts: 145
Location: Czech Republic
332 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 4:52 pm    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

human_addweapon ww, xx, yy, zz

ww = ID of the actor
xx = ID of the weapon
yy = the number of cartridges in a magazine
zz = the number of cartridges that the actor has
Back to top
View user's profile Send private message
Wirmaple7321

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 25

24 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 5:06 pm    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

What do u mean by Actor ID and Weapon ID?
For example what is the id of thompson 1928?
And what is Actor id?

Uh! I found the weapon IDs from this Page!
http://mafiascene.com/forum/viewtopic.php?p=125685
Now I'm just stuck in Actor IDs. Any ideas??
Back to top
View user's profile Send private message
mammix

Junior Member
Junior Member


Joined: 20 Sep 2014
Posts: 38
Location: Lublin, Poland
3583 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 6:18 pm    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

This is basic work in scrypting Mafia, you need to research more before you can progress anywhere.
At the beginning of every script you need to define actors and frames. Imagine it like that - actor is everything that will have any script working with it and a frame will be relating rather with graphics (kind of).
So, for example, "Paulie" can be both actor and a frame. If you want Paulie to talk or to get a weapon, he will be an actor. If you want him to be invisible, he will be a frame.
Inspect the mission files with the Bscriptview, look for tutorials here on the page and good luck Smile
Back to top
View user's profile Send private message
T3mas1

Member
Member


Joined: 11 Jul 2015
Posts: 145
Location: Czech Republic
332 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 8:40 pm    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 701
Location: London, England
13614 Bank Notes
Items

PostPosted: Fri Jul 27, 2018 10:08 pm    Post subject: Re: How to give an actor a Weapon in Bscriptview? Reply with quote

mammix wrote:
This is basic work in scrypting Mafia, you need to research more before you can progress anywhere.


Applause Applause Applause
_________________

The official Mafioso Mod thread
Back to top
View user's profile Send private message
Wirmaple7321

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 25

24 Bank Notes
Items

PostPosted: Sat Jul 28, 2018 10:34 am    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

Uh sry, i can't understand easily.
I use BscriptView 6 and when i add the actor and properties, I also use the Script.
In actor Script i write:
human_addweapon 0, 9, 7, 35
human_holster 0
This Script should gives the Actor in my Mission a Colt 1911, with 7 bullets in magazine and 35 magazines.
But when i load the game, that Actor has only Fist.
He hasn't any Weapons! But i added the weapon script!!
When i kill him and i Search that dead body, i don't find any weapons too.
Is that a bug or i did something wrongly?
Back to top
View user's profile Send private message
mammix

Junior Member
Junior Member


Joined: 20 Sep 2014
Posts: 38
Location: Lublin, Poland
3583 Bank Notes
Items

PostPosted: Sat Jul 28, 2018 11:11 am    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

Did you define who the actor is, like on the photo posted above?
You can easily make the script under the actor you created in the program (so - you create a new Actor, and there you write all these weird things).
Also, the "human holster" makes the actor hide the weapon, I actually don't remember if that means he will attack you with fists. For now, skip this part.

@AsaSK - is that sarcasm? Wink
Back to top
View user's profile Send private message
Wirmaple7321

Junior Member
Junior Member


Joined: 18 Mar 2018
Posts: 25

24 Bank Notes
Items

PostPosted: Sat Jul 28, 2018 11:50 am    Post subject: How to give an actor a Weapon in Bscriptview? Reply with quote

Ah Thanks Thank Thanks!!
This Script Worked!
dim_flt 3
dim_frm 1
dim_act 1
findactor 0, "enemytest2"
human_addweapon 0, 9, 7, 35
Applause Applause Applause Applause Applause
Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 701
Location: London, England
13614 Bank Notes
Items

PostPosted: Sat Jul 28, 2018 5:32 pm    Post subject: Re: How to give an actor a Weapon in Bscriptview? Reply with quote

mammix wrote:
@AsaSK - is that sarcasm? Wink


Not at all, although I was worried it might look that way Cool shades
_________________

The official Mafioso Mod thread
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 - Modding 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.024 | Queries: 18