.:HyPeX:. Posted December 2, 2015 Posted December 2, 2015 Hello, is there any event wich is cancellable as the title suggests? Becouse i'm using onClientProjectileCreation combined with onClientKey, but onClientKey would just work for one key and binding another one ruins it, and teleporting the missile away causes a nasty effect for the client if using only the first event (Rockets dissapear and it isnt cool). My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
John Smith Posted December 2, 2015 Posted December 2, 2015 use destroyElement(source) in onClientProjectileCreation event to destroy the projectile, no need to teleport it anywhere If you find my post useful or if it helped you, please like my post Ingame name: ZoeN
.:HyPeX:. Posted December 2, 2015 Author Posted December 2, 2015 use destroyElement(source) in onClientProjectileCreation event to destroy the projectile, no need to teleport it anywhere Destroying a projectile makes it explode, so you'd be insta-killed by the explosion. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
Moderators IIYAMA Posted December 2, 2015 Moderators Posted December 2, 2015 Use both. But I do not understand how you get this problem in the first place. That bindKey scenario is very unclear because it is incomplete for me as reader. In my damage over write script I am working around it, by calculating the damage of explosions serverside. And sync the effects with triggerLatentClientEvent > client createExplosion(damaging = false). Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
.:HyPeX:. Posted December 3, 2015 Author Posted December 3, 2015 Use both.But I do not understand how you get this problem in the first place. That bindKey scenario is very unclear because it is incomplete for me as reader. In my damage over write script I am working around it, by calculating the damage of explosions serverside. And sync the effects with triggerLatentClientEvent > client createExplosion(damaging = false). I'm wanting to stop players from spraying with the vehicle (hunter) missiles all arround and only shooting 3 in 5 seconds, i found out the best option was toggleControl in the end. My ingame nick is ~HyPeX~ BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now