How to get actors to keep facing you

Post » Sat May 28, 2011 11:36 am

Howdy!

I have written a weapon drawn detection script to add to my NTFS mod. I got the weapon drawn detection working and I need some reaction from the actors.
I use

actor.setAlert 1


to get them to draw their weapons, but I need them to face me while doing it.

I have tried setAngle and Look functions but the actors keep executing their current package simultaneously, meaning e.g. that Moira keeps moving her legs as if wanting to face back towards the counter. Also, people with a moveTo package just Look at me (while still walking) until they have walked far enough for me to leave their field of view.

Is there some way to make them stop and look at me for as long as I want without screwing up their packages?
User avatar
matt white
 
Posts: 3444
Joined: Fri Jul 27, 2007 2:43 pm

Post » Sat May 28, 2011 2:40 pm

You can try making a travel package with the desination set as the 'current location', with the 'must complete', 'must reach location' flags set
Then use addscriptpackage to add this package to the npcs. http://geck.gamesas.com/index.php/AddScriptPackage
Then set their angle and the look command.
In the loop check to see if they are still running the package http://geck.gamesas.com/index.php/GetIsCurrentPackage
When done, use RemoveScriptPackage to remove it.
User avatar
DarkGypsy
 
Posts: 3309
Joined: Tue Jan 23, 2007 11:32 am

Post » Sat May 28, 2011 5:10 pm

Sorry, I was reading and considering an idea and accidentally hit reply.
User avatar
Javier Borjas
 
Posts: 3392
Joined: Tue Nov 13, 2007 6:34 pm


Return to Fallout 3