Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: King on Jul 04, 2016, 09:14 AM

Title: How to check when a player touch an object?
Post by: King on Jul 04, 2016, 09:14 AM
I made a derby and when a player falls on the floor he must die , Events like Onplayermove and Ontimechange seems like a bad way to code. So i want to make a invisible pickup and when player falls on it he must die. how to make a invisible pickup, is there a better way than this?
Title: Re: How to check when a player touch an object?
Post by: Xmair on Jul 04, 2016, 09:30 AM
Use onPlayerExitVehicle or onObjectBumped.
Title: Re: How to check when a player touch an object?
Post by: King on Jul 04, 2016, 10:31 AM
OnObjectBump not working properly. Does big objects like 2014 wont work?
Title: Re: How to check when a player touch an object?
Post by: KAKAN on Jul 04, 2016, 12:50 PM
I don't there is any bug with the current function. If there is, then use a 500ms timer, that won't lag unless you do some serious stuff with it.