![]() |
|
Expression 2 Help - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Help and Support (https://teamscm.co.uk/forum-8.html) +--- Thread: Expression 2 Help (/thread-2747.html) |
Expression 2 Help - Ethan Vondwarf - 15-07-2018 i need 1 things from Person or people that coded the ship turrets and 1 thing that E2 Coders know 1. What is the speed of the projectiles 2. How do I get the Velocity of an entity RE: Expression 2 Help - 4N0NYM - 15-07-2018 For what you need the speed of a projectile ? RE: Expression 2 Help - Ethan Vondwarf - 15-07-2018 A turret I imagine all turret projectiles go at the same speeds RE: Expression 2 Help - The17thDoctor - 16-07-2018 (15-07-2018, 11:36 PM)тѕсм.Ethan Vondwarf Wrote: A turret You cant set the velocity of the projectiles in SF or E2 I think. RE: Expression 2 Help - Ethan Vondwarf - 16-07-2018 THAT'S NOT WHAT I'M ASKING RE: Expression 2 Help - Blackhawk - 17-07-2018 Either there is a method called getVelocity() or you measure the time the entity needs to travel from vector A to vector B and calculate the velocity that way. You can get the projectile speed the same way. RE: Expression 2 Help - The17thDoctor - 17-07-2018 (17-07-2018, 01:32 PM)Blackhawk Wrote: Either there is a method called getVelocity() or you measure the time the entity needs to travel from vector A to vector B and calculate the velocity that way. Indeed, you could measure the time between the projectile is being launched and the time it stops, for example in starfall you have a hook named EntityTakeDamage so you could use it in a way your projectile stops a timer when it hits the prop. |