Jump to content

Script Help - GetActorsByProcessingLevel


Jaslofft

Recommended Posts

First off I am very new to scripting so this is most likely not difficult.

 

I'm currently looking to make a script that will end combat for all nearby actors. I started by using an array variable with the GetActorsByProcessingLevel function. I've spent awhile looking at the tutorials on the GECK Wiki but have not been able it figure it out.

 

This is what I started with although it does not work. I know I am doing something wrong I just don't know what.

 

ref rActor
array_var aActors
let aActors := GetActorsByProcessingLevel 0
let rActor := aActors[0,1,2] (only started with the first three for this line)
if PlayerRef.GetDistance rActor < 200
rActor.ForceAV aggression 0
Any help would be appreciated if you know how to use array functions or an alternative method,
Thanks.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...