In a cut scene I've got a set of placeables that I'm destroying then replacing with broken versions. However, each placeable lingers for a short time after being destroyed before fading away. Is there a blueprint setting or a script command I can use to make them vanish right away?
Destroying a placeable during combat
#1
Опубликовано 25 Июнь 2016 - 04:27
#2
Опубликовано 25 Июнь 2016 - 04:44
- setting its x/y/z really small
- switching its appearance to none
- (etc)
just before the destroy command
- Это нравится: rjshae
#3
Опубликовано 25 Июнь 2016 - 06:28
Thanks KevL.
Now I'm trying to get a grey dwarf to do a victory animation at the end while holding a weapon, but it's not happening for some reason. I guess some animations don't work when a weapon is equipped?
#4
Опубликовано 25 Июнь 2016 - 06:33
#5
Опубликовано 25 Июнь 2016 - 06:41
I guess some animations don't work when a weapon is equipped?
Yes, when there's the combat stance (_1hs_, _D2h_ for example), but when it's a standard animation, it should work even when there's a weapon in hand. I don't know for "victory", but for sure "point" doesn't care if you're empty-handed or not. Are you sure there's no typo in the script? Does "point" work?
#6
Опубликовано 25 Июнь 2016 - 08:07
Ah, found it. I was setting the wrong 'new' tag when I created the first dwarf. The second animated just fine. *sigh* Thank you.
#7
Опубликовано 25 Июнь 2016 - 08:27
#8
Опубликовано 25 Июнь 2016 - 08:39
Okay, this cut scene is supposed to be re-entrant. That is, each time the trigger condition occurs it should replay itself. On the second run it does call the routine that executes the FireAndForgetConversation call (from gin_cutscene). However, the associated conversation doesn't run on the second try. I confirmed that the conversation tree is set to 'Always' in the Node tab, and there is no Condition script that would prevent it from running. It just isn't working. I'm wondering if there is something I'm supposed to do to turn things back off at the end of the cut scene?
void main()
{
object oPC = GetEnteringObject();
if(GetIsPC(oPC)) {
struct CutsceneInfo stCI;
int bCutsceneCondition = TRUE;
string sSpeakerTag = "cut10_ip_conversation"; // Ipoint Speaker
string sDialogName = "cut10_start_conv"; // Cutscene conversation
// Initialize cutscene information
stCI = ResetCutsceneInfo( stCI );
stCI = SetupCutsceneInfo( stCI, sSpeakerTag, oPC, sDialogName, bCutsceneCondition );
BlackScreen(oPC);
SetScriptHidden(oPC, TRUE, FALSE);
FireAndForgetConversation(stCI.oSpeaker, oPC, stCI.sDialog);
DelayCommand( 82.0, SetScriptHidden(oPC, FALSE) );
DelayCommand( 82.0, ResetTelescope(oPC) );
}
}
#9
Опубликовано 25 Июнь 2016 - 09:05
Ah, I think I've got it. The SetupCutsceneInfo call adds a local variable to check when it has already played. Hmm, guess I'll need to reset that.
#10
Опубликовано 25 Июнь 2016 - 10:06
Are you really intent on using the CutsceneInfo struct? I think the only benefit it has, in itself, is that it allows cutscenes to stack - but if there's no danger of that then it's just a complication.
some of the functions in 'ginc_cutscene' are still useful tho
#11
Опубликовано 25 Июнь 2016 - 11:18
y, that's what i noticed Rj
Are you really intent on using the CutsceneInfo struct? I think the only benefit it has, in itself, is that it allows cutscenes to stack - but if there's no danger of that then it's just a complication.
some of the functions in 'ginc_cutscene' are still useful tho
I've used the struct several times without a problem; this time I just had an issue because the cutscene resets itself.
#12
Опубликовано 25 Июнь 2016 - 11:54
#13
Опубликовано 27 Июнь 2016 - 01:52
I didn't even know we can use structs in nwnscript. Interesting...
#14
Опубликовано 27 Июнь 2016 - 05:44
#15
Опубликовано 28 Июнь 2016 - 06:00
Pascal style
.





Наверх






