VC:MP 0.4 (Beta) > Script Discussion

onPlayerCrouchChange is bugged ?!

(1/2) > >>

sseebbyy:
I wanted to test the new event onPlayerCrouchChange by just adding Message("crouch status changed");, but when I crouched and uncrouched in game, there was no message.

Now the question is: "Is the event bugged ?"

S.L.C:
By the looks of it the callback function is implemented in C++ but wasn't attached to the event. Therefore the function is never called to forward the event to the script. The following code is never executed:

--- Code: ---function onPlayerCrouchChange( i_player, state )
{
print( "Player " + i_player.Name + " is " + (state ? "crouched" : "standing") );
}
--- End code ---

Gudio:
- Fixed onPlayerOnFireChange, onPlayerCrouchChange, onPlayerGameKeysChange
- Added onPlayerActionChange( player, oldAction, newAction ), onPlayerStateChange( player, oldState, newState )

I noticed that onPlayerCrouchChange always returns false (probably server's bug)

Linux 32-bit module
Linux 64-bit module

sseebbyy:
* sseebbyy is waiting for windows plugin update

ysc123:

--- Quote from: sseebbyy on October 11, 2014, 05:46:16 pm ---* sseebbyy is waiting for windows plugin update
--- End quote ---
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip

Navigation

[0] Message Index

[#] Next page

Go to full version