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

Silly question

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

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 758
Location: London, England
13729 Bank Notes
Items

PostPosted: Fri Apr 12, 2013 3:09 am    Post subject: Silly question Reply with quote

For some reason, probably because it's 4 in the morning, my mind has gone blank about a really obvious thing..


I've written this:

Code:
dim_act 2

findactor 0, "Tommy"
findactor 1, "Man1"

event use_ab
enemy_talk 1, 13940020


The talk function ("event use_ab") does work, but at the start of the mission (as soon as it loads) the person immediately says the speech without the player needing to use the action button on them first.

Can any modders who have had this problem remind me why it is happening? I think I remember solving it once, but that was a long time ago.


Many thanks for this.
_________________

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

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 05 Mar 2013
Posts: 522

1017 Bank Notes
Items

PostPosted: Fri Apr 12, 2013 3:16 am    Post subject: Silly question Reply with quote

give your character an animation...the ab interupts the animation and then the return sends it back

without the animation there is no loop and the script just charges through


that is my experience anyway

this is a good neutral standing one

Code:
label 1
{ up
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda01.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda03.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda03.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
}
goto 1
Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 758
Location: London, England
13729 Bank Notes
Items

PostPosted: Fri Apr 12, 2013 3:25 am    Post subject: Re: Silly question Reply with quote

MatteoCapoletti wrote:
give your character an animation...the ab interupts the animation and then the return sends it back

without the animation there is no loop and the script just charges through


that is my experience anyway

this is a good neutral standing one

Code:
label 1
{ up
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda01.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda03.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
enemy_playanim "NudaStativ.I3D"
wait 3000
enemy_playanim "Nuda03.I3D", 0
let flt[0] = flt[0] - 420
wait flt[0]
}
goto 1


Beauty, I had an animation but you reminded me I needed the "goto" bits at each end to loop it (even though it's a 'stativ'). Thanks a lot bro.
_________________

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

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 05 Mar 2013
Posts: 522

1017 Bank Notes
Items

PostPosted: Fri Apr 12, 2013 3:32 am    Post subject: Silly question Reply with quote

No problem bro....I am guessing the ab stands for animation break
Back to top
View user's profile Send private message
AsaSK

Mafiascene Veteran Modder
Mafiascene Veteran Modder


Joined: 24 Feb 2013
Posts: 758
Location: London, England
13729 Bank Notes
Items

PostPosted: Fri Apr 12, 2013 3:40 am    Post subject: Silly question Reply with quote

You could well be right there actually, now I think about it.
_________________

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 - 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.026 | Queries: 18