Jump to content
  • 0

effectCrypto: giving Crypto to player after mission complete


Dwarfer

Question

Hi Guys,

 

I am writing some mission stuff but seem to be having issues giving cash to players on completion.  I do not seem to get any error messages using the following and from what I can tell it should work. Anyone got any comments on this ??

 

[['effectCrypto', "500"], owner _driver] call EPOCH_sendPublicVariableClient;

 

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You can also drop Krypto packages on the floor (find out how to do the location)

 

_krypto = createVehicle ["Land_Money_F", _missionpos, [], 5, "None"]; //_missionpos is where the money should land, use your own

_krypto setVariable ["cmoney", 1000, true]; //1000 krypto
_krypto setVariable ["owner", "world", true]; //make public

 

you should add some spread in the location, but that's pretty easy to figure out.

Link to comment
Share on other sites

  • 0

nedfox

 

Thanks for this, is there no way to just add it to the user then ?.  I will give your idea a go anyway as giving to the user does not work anyway :-)

 

Thanks

 

**Edit.

 

Tried this. Put the money on the floor but I am unable to pick it up.  any other ideas ?

Link to comment
Share on other sites

  • 0

There's some epoch variables, which I haven't looked into deeply, but :

 

EPOCH_playerCrypto contains the amount of krypto on a player.. You can increase/decrease it, but linking the variable to a specific player I don't know howto.

 

EPOCH_playerCrypto = EPOCH_playerCrypto + _amount;

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...