Home   Help Search Login Register  

Author Topic: Help on Random suicide bomber !!  (Read 446 times)

0 Members and 1 Guest are viewing this topic.

SgtCannoot

  • Guest
Help on Random suicide bomber !!
« on: 30 Dec 2004, 23:33:52 »
Hello

I am working on a mission where your first objective before engaging the town you seround is to controll vehicles and let em trought

now what i wanted to do was make it so that the civilian vehicles spawn a radom type
AND to make it so that the peopelle spawned inside the vehicle are also random civilians not always the same and sometimes rebels with a bomb

That way you as a gaurd have gaurd the checkpoint and identify the targets inside their vehicle not just click on it to see if its enemy

so far al i got to work is the bombing script that lets em blow up but i have no idea how to randomise the vehicels or the unit

any help would be greatly aprieciated

btw sorry for my englisch

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help on Random suicide bomber !!
« Reply #1 on: 02 Jan 2005, 21:52:02 »
Assuming the bombers/civvies are AI you could just create a whole bunch of them and use the probability of presence field to determine the probability of each appearing.

How does the player determine if a civvy is just a civvy or a bomber?
Plenty of reviewed ArmA missions for you to play

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Help on Random suicide bomber !!
« Reply #2 on: 02 Jan 2005, 22:09:20 »
Could you not make a script using arrays?

Code: [Select]
_unitArray = ["Man","Man2","Man3","Man4","Man5","Man6","SoldierGB","SoldierGMG","*insert type"]

_vehicleArray = ["SkodaWhite","SkodaYellow","*insert type"]

then randomly pick a varible out of the array?
*vehicle types are not guarenteed*

"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

SgtCannoot

  • Guest
Re:Help on Random suicide bomber !!
« Reply #3 on: 03 Jan 2005, 01:54:38 »
thks guys sorry for the late reply but i had no internet for the last 3 days cause i passed my bandwith limit
 i found my own solution in the mean time tught thks anyway
ill post the mission as oon as its playable that way you guyscould try and let me know what you think