I’m trying something I’ve never done before. I know Shallina had some kind of system for this kind of thing, but looking at the script she posted (it was in the thread about Gestalt Cutscene Scripting) it feels like way over my head at the moment.
So, to explain:
It’s a cutscene (NWN2 style conversation with static camera and all that)
In one node I would like a placeable to cast a lightbeam (maybe there’s some spell that looks like a lightbeam? I don’t want an explosion on the target, just a very bright light beam hitting the target)
The target is a companion (or it might be the PC)
So, I think I need a visual effect like in Shallina’s script, perhaps something like:
@travus - Testing this further…Is there a way to make the beam aim for the head of the creature? When looking at the Globals in the Script Assist there only seems to be BODY_NODE_CHEST and BODY_NODE_HAND, so maybe that’s impossible?
Wow that looks great, travus! I wonder if it still works while the oPC or the companion sits down…
Sadly it didn’t. The script worked as advertized, but since the character is sitting down with the sit_4 animation from kemo animations suite it didn’t work. I’ll go back to your first version then, unless you think even this could be solved (but I think that would be difficult to calculate where the head is when the character is sitting down). Perhaps I could manually put in an ipoint where I think the head will be and do a few tests but…ah, nevermind. It still looks good even if it doesn’t hit the head.
EDIT: Tested things again ingame and it really looks good the way it is. You don’t have to put any more effort into this, travus. I’m very grateful for your scripts!
Assuming the character is already sitting down when the script fires, try changing this: float fHeight = StringToFloat(sHeight);
to this: float fHeight = StringToFloat(sHeight) * 0.8;