Forged Alliance Forever Forged Alliance Forever Forums 2015-02-08T15:34:25+02:00 /feed.php?f=41&t=9179 2015-02-08T15:34:25+02:00 2015-02-08T15:34:25+02:00 /viewtopic.php?t=9179&p=93225#p93225 <![CDATA[Re: Sliders]]>
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.



So during the entities OnCreate then?

Wouldn't this be part or the entities "self" ?
Also would we use GetEntityById or just the Id directly with the slider function?

Resin

Statistics: Posted by Resin_Smoker — 08 Feb 2015, 15:34


]]>
2015-02-08T14:19:44+02:00 2015-02-08T14:19:44+02:00 /viewtopic.php?t=9179&p=93215#p93215 <![CDATA[Re: Sliders]]> Statistics: Posted by Domino — 08 Feb 2015, 14:19


]]>
2015-02-08T14:17:55+02:00 2015-02-08T14:17:55+02:00 /viewtopic.php?t=9179&p=93214#p93214 <![CDATA[Re: Sliders]]> adjust the slider send the callback and grab the projectile from the given entityid and do what you want to do with it.. from simcallbacks.lua

look at how i did the shield slider in DMS and 4dc.. same principal but different outcome pal.

Dave

Statistics: Posted by Domino — 08 Feb 2015, 14:17


]]>
2015-02-08T14:06:20+02:00 2015-02-08T14:06:20+02:00 /viewtopic.php?t=9179&p=93210#p93210 <![CDATA[Re: Sliders]]>
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

So how can can I make this work?

Statistics: Posted by Resin_Smoker — 08 Feb 2015, 14:06


]]>
2015-02-08T14:03:24+02:00 2015-02-08T14:03:24+02:00 /viewtopic.php?t=9179&p=93208#p93208 <![CDATA[Re: Sliders]]>
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.

I'm guessing that as only units have callbacks it why sliders will not function with other entity types?

Statistics: Posted by Resin_Smoker — 08 Feb 2015, 14:03


]]>
2015-02-08T12:44:22+02:00 2015-02-08T12:44:22+02:00 /viewtopic.php?t=9179&p=93201#p93201 <![CDATA[Re: Sliders]]> Statistics: Posted by Domino — 08 Feb 2015, 12:44


]]>
2015-02-08T12:41:45+02:00 2015-02-08T12:41:45+02:00 /viewtopic.php?t=9179&p=93200#p93200 <![CDATA[Re: Sliders]]>
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

Statistics: Posted by Domino — 08 Feb 2015, 12:41


]]>
2015-02-08T12:30:47+02:00 2015-02-08T12:30:47+02:00 /viewtopic.php?t=9179&p=93198#p93198 <![CDATA[Re: Sliders]]>
Domino wrote:
what do you mean give an example of what you want to happen.

The "self" as far as I know of has to be based off of a Unit entity. The slider itself can alter the position of any other form of entity type but it's owner must be a Unit. Was wondering if there was a way to have the owner set as the projectile or any other generic entity type?

Statistics: Posted by Resin_Smoker — 08 Feb 2015, 12:30


]]>
2015-02-08T12:18:49+02:00 2015-02-08T12:18:49+02:00 /viewtopic.php?t=9179&p=93197#p93197 <![CDATA[Re: Sliders]]> Statistics: Posted by Domino — 08 Feb 2015, 12:18


]]>
2015-01-09T23:49:20+02:00 2015-01-09T23:49:20+02:00 /viewtopic.php?t=9179&p=90770#p90770 <![CDATA[Sliders]]>
So far i've only seen sliders used from a unit to move other things or stuff like muzzles.

Resin

Statistics: Posted by Resin_Smoker — 09 Jan 2015, 23:49


]]>