Home   Help Search Login Register  

Author Topic: Add money to civilians  (Read 1659 times)

0 Members and 1 Guest are viewing this topic.

Offline Yasirotta

  • Members
  • *
Add money to civilians
« on: 26 Jan 2009, 20:02:12 »
I would like to add random value of money to civilians.
First, it would be nice if i could set 60% chance they have even something, so its possible that civilian doesnt't have any cash. After this, each civilian could carry random value of cash between 5 to 50 dollars. I have about 25 civilian, so is there easy way to script this or do i have to name every civilian to this script ?
I would like use script so, that you can shoot civilian and take possible cash in action menu.

I use this code in my init.sqs for money:
Code: [Select]
playermoney = 100
EDIT:
Sorry, put this in to wrong place.  :-[
Any moderators can remove this thread
« Last Edit: 26 Jan 2009, 20:20:08 by Yasirotta »

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Add money to civilians
« Reply #1 on: 26 Jan 2009, 21:31:12 »
Better course of action would have been to ask to move this to the correct place instead ;)  :cop:

Anyhoo, #locked
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.