quick introduction: I am a game art student, i'm mostly a painter. My experience with scripting to date is that i know some web coding (which doesn't count) i had an 11 week MEL class over the winter quarter. Having been thrown into an unreal scripting class i'm a little over my head, but i enjoy it a lot. that having been said-
I'm putting together a UDK sidescroller where the character will fire rockets that create lights. When the character is outside of the light their health will steadily decrease.
i've fiddled with the rocket class projectile lights, set up the DOT function in the player class, created a volume class that toggles the player as "lit" or "unlit" to deal damage to them when unlit. cameras work, controlls work, everythings dandy.
PROBLEM:I cannot figure out how to spawn my light-check volume when the rocket explodes. I tried adding to the HitWall function, but i can't seem to get the parameters right, it just keeps spitting errors at me on parameter 1. I thought i had it using Event HitWall, but despite no errors all i ended up doing was breaking the event.
If anybody could point me in the right direction i'd appreciate it. I doubt i'm getting the parameters for the Spawn function right either, but i haven't really gotten that far.
here's the current attempt that isn't working:
i had tried just putting my spawnVolume function in Hitwall but got an error that said i couldn't redefine it. This is in my rocket class.
I'm putting together a UDK sidescroller where the character will fire rockets that create lights. When the character is outside of the light their health will steadily decrease.
i've fiddled with the rocket class projectile lights, set up the DOT function in the player class, created a volume class that toggles the player as "lit" or "unlit" to deal damage to them when unlit. cameras work, controlls work, everythings dandy.
PROBLEM:I cannot figure out how to spawn my light-check volume when the rocket explodes. I tried adding to the HitWall function, but i can't seem to get the parameters right, it just keeps spitting errors at me on parameter 1. I thought i had it using Event HitWall, but despite no errors all i ended up doing was breaking the event.
If anybody could point me in the right direction i'd appreciate it. I doubt i'm getting the parameters for the Spawn function right either, but i haven't really gotten that far.
here's the current attempt that isn't working:
Code:
Simulated function KDHitWall(Object.Vector HitNormal, Actor Wall, PrimitiveComponent WallComp)
{
super.Hitwall(Object.Vector HitNormal, Actor Wall, PrimitiveComponent WallComp)
SurfaceNormal=Hitnormal;
SpawnVolume();
}
simulated function SpawnVolume()
{
Spawn(class'KDLightCheckVolume',self,,Location,,);
}
i had tried just putting my spawnVolume function in Hitwall but got an error that said i couldn't redefine it. This is in my rocket class.
Last edited: