vovo4ka Posted April 18, 2010 Posted April 18, 2010 I need a more hard-cored functions(like getProjectileType) to work with projectiles: getProjectileTarget .. etc. Also it would be great if onClientProjectileCreation event would have more parameters: onClientProjectileCreation Parameters like createProjectile element creator, int weaponType [, float posX, float posY, float posZ, float force = 1.0, element target = nil, float rotX, float rotY, float rotZ, float velX, float velY, float velZ, int model ] I'm looked in MTA source, it is not difficult to add this parameters in event I dont know how to compile this. And I'm not sure that this will works Thx!
Gamesnert Posted April 18, 2010 Posted April 18, 2010 http://github.com/Gamesnert/multithefta ... 653b212e3d I've just made functions out of it, because you can simply use getProjectileTarget etc in the event itself, as well as outside of them. I couldn't exactly find out how to return the model parameter, but oh well, that's not that important, is it? Projects: Slothbot | Maximap
vovo4ka Posted April 18, 2010 Author Posted April 18, 2010 Yes! thx. It would be great if these functions will be in 1.0.4 ----- model can be returned by getProjectileType. Also is it possible to know 'force' parameter. Position and Velocity I think, I can get by getElementPos ans Velocity functions and Rotation. I want to repeat projectile creation identically projectile created by player weapon.
Recommended Posts