Anyone know if a slider can be based off of a projectile or prop?
So far i've only seen sliders used from a unit to move other things or stuff like muzzles.
Resin
Forged Alliance Forever Forums
Moderator: Morax
Domino wrote:what do you mean give an example of what you want to happen.
Domino wrote:the problem with sliders is because they are in the userlayer, you have to do a sim callback to effect the entity, this is obviously every game tick as sim callbacks operate every tick.. this is why its easy to use them on static objects.
Domino wrote:Hey,
Sliders can be based off anything you just need the entity in which you want to manipulate, getting a projectile entity id in the user layer is no easy task, however LOL with DMS
i added code to store all projectile entity ids in a table when a unit creates one it also removes them when they die, you can get all (living) projectiles or filter a single a one.
i added that code because i was going to add a mini stats ui that would say how many shots fired / units killed / hit rate / dmg dealt but also so we manipulate a projectile at any time.
Dave
Domino wrote:also we cannot get projectiles in the sim by get enititybyid it doesnt work, you have to actually store the projectile somewhere on the unit in the sim and have the unit retrieve the actual object.
Users browsing this forum: No registered users and 1 guest