OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Yasirotta on 26 Jan 2009, 20:02:12

Title: Add money to civilians
Post by: Yasirotta 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
Title: Re: Add money to civilians
Post by: h- 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