bandi94 Posted July 30, 2013 Share Posted July 30, 2013 Is there any way to filter the normal rocket (lunched by hunter in DM map) from Heat Seeking rocket (created by my script). I know one way would be to add my rocket's to a table wen i create them , but it's not the best way , bk i would need to send it to the server , proccess them , and send the tabel back to all client's. It would be horible to send one table from each client, then each client would get 24 table on every Frame...... getElementsByType("Projectile") - would return both type's after that is there any way to filter them ?? THX Link to comment
Moderators IIYAMA Posted July 30, 2013 Moderators Share Posted July 30, 2013 https://wiki.multitheftauto.com/wiki/GetProjectileType addEventHandler ( "onClientProjectileCreation", root, function( creator ) local projType = getProjectileType(source) end) Link to comment
Moderators IIYAMA Posted July 30, 2013 Moderators Share Posted July 30, 2013 bk i would need to send it to the server , proccess them , and send the tabel back to all client's. Change them to strings, it is the only way to secure their passages. I am not sure if you create a projectile and the projectile that I see on my screen contains the same userdata. Link to comment
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