I'm currently learning how to script and have been experimenting with a few things here.
I'm trying to summon custom NPC's using a Vertibird.
i'm done with the first part ... i've created a menubased script which let's me do just that
scn 1SquadRadioScriptint ibuttonref r1SquadSniperBegin OnEquipshowmessage 1SquadSummonMenuendBegin GameModeset iButton to GetButtonPressed if iButton == -1returnelseif iButton == 0 playsound WPNAlienBlasterFire2Delseif iButton == 1 placeatme 1TacticalSquadVertibird 1elseif iButton == 2 PlaceAtMe 1TacticalSquadVertibird 1set r1SquadSniper to 0endif
Now there is a second script attached to a verbird activator with a line "placeatme 1SquadSniper 3" ...and it works fine ... but now there are two things that i cannot acomplish
1. I would like to be able to summon no more than 3 combatants ... so when there are allready 3 alive ones in scene the script would result in 0
2. How to dismiss the summoned troops ?? tried with disable and remove and GetIsID xxx => 1 remove them all
but the problem is that i cannot find anywhere how to get actor count of the custom NPC's in the current scene and i cannot find a command on how to remove them
And lastly .. how do you assign custom Variables to custom groups of actors ???
Thanks in Advance
Alex
