Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
BL1P

A question about onPlayerRespwan.sqf

Recommended Posts

I have recently noticed that the onPlayerRespawn.sqf is ran on a player joining server and not only when a player respawns.

is this intended, am i doing something weird, or is it a bug ?

Share this post


Link to post
Share on other sites
I have recently noticed that the onPlayerRespawn.sqf is ran on a player joining server and not only when a player respawns.

is this intended, am i doing something weird, or is it a bug ?

No this is normal. An oddity for sure, but normal.

To prevent it running for joined clients, put this at the top line:

if (isNull (_this select 1)) exitWith {/* Im not respawning just joining! */};

Share this post


Link to post
Share on other sites
No this is normal. An oddity for sure, but normal.

To prevent it running for joined clients, put this at the top line:

if (isNull (_this select 1)) exitWith {/* Im not respawning just joining! */};

Very clever! Thx :)

Share this post


Link to post
Share on other sites

Thanks thought it was me freaking out there for a bit :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×