Oneliners are small dialogues that do not interrupt gameplay.
NPC oneliners
For NPCs to use oneliners, first, Scene Area should be created on our level. In CSceneAreaComponent select SceneSelectionMode (e.g. Random) and input priority, interval between scenes and max number of scenes - e.g. 500, 20 and 1 respectively.
Expand Scenes menu, press green cross (go to Asset Browser, create Scene Script) go back to editor and link this script. The last thing that needs to be done with Scene Area is filling the SceneInput - e.g. “whore”.
Open SceneScript and create section (AddSection) and connect it with input and output.In this section write SectionName (e.g. “oneliner”) and mark isGameplay as true. In DialogueText - mark Voicetag of the character that will say this oneliner and write down the text.
In StartingCondition add input name from the SceneArea - it was “whore’.
In dialogue settings write Voicetag of the character that says the oneliner.
Spawn the character and check if everything works.
You can also start your oneliners if you simply use a trigger.
Interactive oneliners
If you want for NPC to say a particular oneliner in particular moment you need to have input in scene file. Then after including this scene in interraction dialogue block, you’ll see available inputs and select the one you’re interested in.
Animated oneliners
Despite the fact that oneliners are "gameplay dialogue", you can still go to the director's layout and set different animations for the dialogue. If you create a oneliner involving the player and you give him an animation, he will only "play" this animation if he does not move.
NPC oneliners
For NPCs to use oneliners, first, Scene Area should be created on our level. In CSceneAreaComponent select SceneSelectionMode (e.g. Random) and input priority, interval between scenes and max number of scenes - e.g. 500, 20 and 1 respectively.
Expand Scenes menu, press green cross (go to Asset Browser, create Scene Script) go back to editor and link this script. The last thing that needs to be done with Scene Area is filling the SceneInput - e.g. “whore”.
Open SceneScript and create section (AddSection) and connect it with input and output.In this section write SectionName (e.g. “oneliner”) and mark isGameplay as true. In DialogueText - mark Voicetag of the character that will say this oneliner and write down the text.
In StartingCondition add input name from the SceneArea - it was “whore’.
In dialogue settings write Voicetag of the character that says the oneliner.
Spawn the character and check if everything works.
You can also start your oneliners if you simply use a trigger.
Interactive oneliners
If you want for NPC to say a particular oneliner in particular moment you need to have input in scene file. Then after including this scene in interraction dialogue block, you’ll see available inputs and select the one you’re interested in.
Animated oneliners
Despite the fact that oneliners are "gameplay dialogue", you can still go to the director's layout and set different animations for the dialogue. If you create a oneliner involving the player and you give him an animation, he will only "play" this animation if he does not move.