A_SetGravity

Moderator: GZDoom Developers

Post Reply
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

A_SetGravity

Post by CaptainToenail »

This function lets you set the gravity effecting the actor

A_SetGravity (gravity factor)

e.g. A_SetGravity (0.75) would set an actor to receive 3/4 gravity and A_SetGravity (1) would reset it to normal.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: A_SetGravity

Post by HotWax »

You can already do this with [wiki]SetActorProperty[/wiki].
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: A_SetGravity

Post by Ichor »

Yes, but that doesn't work in decorate.
User avatar
Rachael
Posts: 13965
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: A_SetGravity

Post by Rachael »

IMO, SetActorProperty should be given a special so that it can be used in DECORATE. I've run into too many situations where I've wished I could use it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_SetGravity

Post by Graf Zahl »

Eventually I will take the entire ACS function interface apart and generalize it in a way that will make all functions accessible from all scripting implementations (including DECORATE and GZDoom's FraggleScript.)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”