tosfera Posted December 21, 2013 Share Posted December 21, 2013 Hi guys, So I've been having trouble with hitting objects, like a vehicle hits an object or whenever a player smashes an object or shoots at it. There is a way to cancel it already ( breakable option ) but we can't use it as a real function / event already. There is a onClientPlayerDamage but that only works for players. I'd like to cancel the effect if a player drives into a tree or a lightpole. Any chance that the dev's could make this or is there already something like this? ^^ ( if it's not there I'm going to bribe, mwuahahah ) - Thanks Link to comment
denny199 Posted December 22, 2013 Share Posted December 22, 2013 https://wiki.multitheftauto.com/wiki/On ... eCollision ?? for cars?? https://wiki.multitheftauto.com/wiki/On ... jectDamage ?? for objects?? Link to comment
tosfera Posted December 23, 2013 Author Share Posted December 23, 2013 Will the OnClientObjectDamage cover the fuel stations? Like, make them non-explodeable. Link to comment
myonlake Posted December 23, 2013 Share Posted December 23, 2013 Will the OnClientObjectDamage cover the fuel stations? Like, make them non-explodeable. https://wiki.multitheftauto.com/wiki/OnClientExplosion Link to comment
DiSaMe Posted December 23, 2013 Share Posted December 23, 2013 removeWorldModel createObject "onClientVehicleCollision" "onClientObjectDamage" createExplosion destroyElement Link to comment
tosfera Posted December 24, 2013 Author Share Posted December 24, 2013 Will the OnClientObjectDamage cover the fuel stations? Like, make them non-explodeable. https://wiki.multitheftauto.com/wiki/OnClientExplosion Love you. Link to comment
Jusonex Posted December 27, 2013 Share Posted December 27, 2013 Will the OnClientObjectDamage cover the fuel stations? Like, make them non-explodeable. You can use onClientObjectDamage as well as onClientObjectBreak to prevent the fuel station from exploding (in case of you're working with MTA elements). Link to comment
Recommended Posts