Author Topic: VCE Events Interaction  (Read 1354 times)

I was wondering how I could go about creating variables that are accepted by the VCE mod?

What do you mean?
Creating your own events that work VCE?
Or creating like OnActivate ==> Client ==> VCE_ModVariable ==> [Gold] [add] [1]   ?

I think he means creating things that work with VCE, like a hunger system that you can edit hunger easily using VCE instead of a whole new event thing.

So you're wanting VCE Values, not Variables.

I think he means creating things that work with VCE, like a hunger system that you can edit hunger easily using VCE instead of a whole new event thing.
Ahh... no help from me thar...


PM Destiny about it.
Shouldn't be too hard, just look into destiny's code...

Lemme clear this up.

I wanna be able to give the client 8 teddy bears through my code, and then be able to make an onActivate-->client-->centerprint--><var:cl:teddies>, for example.

registerSpecialVar(class,name,howtoget);
Class can be fxDtsBrick/gameConnection/Player/Vehicle/MinigameSO. In the future I will be making custom class support.
Name should be the name you access the value with.
Howtoget should be a piece of evaluation code that will be returned when the value is accessed.
For example: registerSpecialVar(GameConnection,"bl_id","%this.bl_id");
GameConnection means you use <var:client:*>
"bl_id" means you use <var:client:bl_id>
"%this.bl_id" means that the bl_id variable on a client will be returned.

I see.

Code: [Select]
registerSpecialVar(GameConnection,"teddies","%this.teddybearCount");
Thanks.

Lemme clear this up.

I wanna be able to give the client 8 teddy bears through my code, and then be able to make an onActivate-->client-->centerprint--><var:cl:teddies>, for example.

Uh... can't you already do that with VCE_modVariable?

I now doubt your intelligence.

Quote
I wanna be able to give the client 8 teddy bears through my code, and then be able to make an onActivate-->client-->centerprint--><var:cl:teddies>, for example.

KEYWORD: CODE

You want to edit an Add-On instead of using it?

Look at the "RegisterSpecialVar()" function in the VCE script.


I forgot what the arguments are, but you do it like that.

This is not working, at all.

When I register a var, absolutely nothing happens with an centerprint <var:cl:whatever> or a ifValue event.