Jump to content

Kc Jones

  • Content Count

  • Joined

  • Last visited

  • Medals

Everything posted by Kc Jones

  1. Hello I'm trying to write a simple script to reward players on killing an enemy AI to receive an item that will be added to their inventory. I've been looking around and I have not been able to find anything that works. The item I am trying to use is the bank notes from ravage because I'm using the VASS “virtual arsenal shop system” so that players can also purchase weapons, ammo and gear Etc. I do know I had something to do with add event handlers but I've just can't figure it out whatsoever. If you have any examples please post it would be very helpful in creating my multiplayer mission. Thank you.
  2. So I've tried to implement both codes Within my game and I keep getting a “ error GIAR pre stack size violation “ The code placed below is what I'm trying to implement so far with the added “rvg_money” item. In my initServer.sqf addMissionEventHandler ["Killed", { params ["_unit", "_killer", "_instigator", "_useEffects"]; _rewardAmount = round(random [50,70,100]) //REWARD SOMEWHERE BETWEEN $50 & $100 //ADD THE MONEY ITEMS (IDK IF ITS $1 = 1 MONEY ITEM, SO ADJUST ACCORDINGLY) for "_i" from 1 to _rewardAmount do { if(!canAdd "rvg_money")exitWith{}; //NOT ENOUGH SPACE, CANT ADD _killer addItem "rvg_money"; }; _hintStr = format["Congrats murderer... heres $%1",_rewardAmount]; //SHOW A HINT WITH THE AMOUNT THEYVE EARNED [_hintStr] remoteExec ["hint",local _killer]; }];
  3. Dose any one know how to implement simple shops money into the fn_VASShandler.sqf. I having a hard time to understand the code placement.