Id like to exclude finding the player and the actor who is speaking and grab any one else in the cell...
Any examples would be blessed.
int iIndex = 21 ; max number of times we will search (actually, we'll search only 20 times ... )int myRadius = 5 ;search radius stepsActor randomActor ;variable used to test if a random existsActor myRandomGuyIs ;variable to put the guy in when we found him (optional, is already a variable ... I just do stuff this way!)While(iIndex > 0) iIndex -= 1 Actor randomActor = Game.FindRandomActorFromRef(Game.GetPlayer(), myRadius) If randomActor != None ;we found someone! ;but is it akSpeaker? if randomActor == akSpeaker ;no good, extend search radius myRadius = myRadius + 5 ;loop will now rerun else ;ALL GOOD - This random will do! iIndex = -1 myRandomGuyIs = randomActor endIf Else ;we found no one, so increase the search radius myRadius = myRadius + 5 ;then just continue with the loop EndIfEndWhile;now finally test whether we got someoneif myRandomGuyIs != None;WooHoo! Do stuff here ... start a quest or whateverelse;sadly, after 20 tries, we still found no oneTry to handle the error somehow ...endIf