Jump to content
Sign in to follow this  
nark0t1k

HC problem when disconnect/reconnect

Recommended Posts

Hello

I get a problem during my HC implementation testing.
Working on a Life mission

My HC work fine first time it's connect all script call with remotexec(Call) on HC work.

If my HC was disconnected and auto reconnect some remotexec(Call) doesn't work anymore.

Remotexec(Call) in NPC init started fine

Remotexec(Call) in consol start fine

Remotexec(Call) in script doesn't start

I use diag_log on early script called by HC for testing this.

HC ID is store and broadcast in HC_Life (use diag_log format for check)

Here is a short example of a Remotexec(Call) 
 

[] remoteExecCall ["HC_fnc_spawnVehicle",HC_Life];

When HC first connect HC_Life = 3
All script work well
HC disconnect/reconnect
New HC_Life = 5

In consol: hint format["%1", HC_life]; show me: 5
In script: diag_log format["%1", HC_life]; show me: 3

Then remotexec try to execute this on bad ID ...

Any help, tips, thing to try are welcome !

Sry for my bad language, try to do my best.

 

Share this post


Link to post
Share on other sites
This is a miss post ...

 

Problem sovled sry for this mistake.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×