Scripting Question
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Scripting Question
I'm trying to use the Thing_Projectilegravity action to spawn a thing at a random angle, but I can't find a piece of code that won't generate an error message when I try to compile it. If anyone could help me, it would be appreciated. It's for a single Pwad I'm making that I want to be called "A Battle in Hell"
- solarsnowfall
- Posts: 1581
- Joined: Thu Jun 30, 2005 1:44 am
How do you mean "fixed angle"solarsnowfall wrote:Thing_ProjectileGravity has a fixed angle.
Thing_ProjectileGravity (tid, type, angle, speed, vspeed)
Here's a typical example from one of my scripts to spawn some debris
Thing_ProjectileGravity(100, 64, random(0, 255), random(10, 40), random(5, 20));
