[ACS] Change velocity of projectile

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)

[ACS] Change velocity of projectile

Postby Recurracy » Sat Nov 20, 2021 11:41 am

Hi,

I want to modify the velocity of a projectile using ACS. Right now I have 4 children of a projectile actor, the only difference is the speed, and depending on a certain inventory token, the actor gets chosen to be spawned. However, I want to make this system modular and easier to change, so I want to directly change the projectile's velocity depending on the amount of inventory tokens the player has. Think of like, throwing dynamite in Blood.
Would something like this even be possible?
User avatar
Recurracy
Break out the buttah
 
Joined: 19 Dec 2008

Re: [ACS] Change velocity of projectile

Postby determin1st » Sat Nov 20, 2021 12:55 pm

User avatar
determin1st
 
Joined: 06 Oct 2021

Re: [ACS] Change velocity of projectile

Postby Recurracy » Sat Nov 20, 2021 2:32 pm

didn't know setactorvelocity was a thing, i think i can work with that
User avatar
Recurracy
Break out the buttah
 
Joined: 19 Dec 2008


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests