Changing entity properties in script
Changing entity properties in script
I seem to be clogging up this forum with my questions....sorry
This is probably really easy question but I can't find the answer after looking for a while.
I want to change the DecalDefine entity height dynamically in script as at the moment all of the bullet holes are appearing at the same height and I want a random spread. How is this done? Or is this the wrong way to go about the problem?
many thanks
This is probably really easy question but I can't find the answer after looking for a while.
I want to change the DecalDefine entity height dynamically in script as at the moment all of the bullet holes are appearing at the same height and I want a random spread. How is this done? Or is this the wrong way to go about the problem?
many thanks
I don't think that can be done. I believe you can't modify those things once you've compiled the level.
But it would be possible to define more decals with different sizes and projectiles that use different decals. Then you could randomly pick the projectile that is shot. However, this includes scripting the player and weapons so I don't think it's worth it.
But it would be possible to define more decals with different sizes and projectiles that use different decals. Then you could randomly pick the projectile that is shot. However, this includes scripting the player and weapons so I don't think it's worth it.
I don't mind. And I'm sure the others don't mind either. Most of us are happy to help, you can ask anything here. And besides, the forums seem to be kinda quiet again. So it's good thing that at least someone is posting questions.I seem to be clogging up this forum with my questions....sorry
Pain is only psychological.
GooD! LUCK! I really should start learning coding... I have avoided scripting entirely! I am absolutley terrified of scripting... yees I know that its really important and since I wanna wrk in the game dev industry one day I REALLY NEED to but I just dont know where to start I look all over google and nothing... (i know I dont look around google I look around the web with google but it feels like your browsing google sumtimes )
Oh and Ja I like having questions every now and then around here since whenever sum1 answers you I learn sumink!
(sorry to go off topic there)
Oh and Ja I like having questions every now and then around here since whenever sum1 answers you I learn sumink!
(sorry to go off topic there)
My Deviant Art - http://black-crusader.deviantart.com
Well I'm learning scripting from the tutorials in Dan Valeo's fabulous e-book and it's not easy - but its pretty good
viewtopic.php?t=443
viewtopic.php?t=443
thanks ill look at that when I get a chance! What kinda scripting does that teach you???
My Deviant Art - http://black-crusader.deviantart.com
After some experimenting I realise that I misunderstood the meaning of 'height' in DecalDefine. I thought it mean height on the wall, when infact it means how much the decal is stretched vertically. All becomes clear when you see the width property below it.
'we see what we want to see'
I was interested that the decal would also be displayed if they hit a play (or pawn) in mid air. In my game, where the decals are red dots it looks quite good... but is it the way its meant to be? (see image)
many thanks
'we see what we want to see'
I was interested that the decal would also be displayed if they hit a play (or pawn) in mid air. In my game, where the decals are red dots it looks quite good... but is it the way its meant to be? (see image)
many thanks
WOW! your game looks cool! this what I love to see! Games taht are different! Well to be honest Im not too sure that the decalls are supposed to be created mid air... but hey it looks cool!
My Deviant Art - http://black-crusader.deviantart.com
-
- Posts: 866
- Joined: Fri Jul 08, 2005 4:27 am
- Location: PA, USA
Glad people like the look of the level...
When its kind of finished (at the moment there is no end - or any point really), I'll make it available. Be nice to have some gameplay feedback
Gameplay is weird isn't it. You think your being clever by puting in more walls, obstacles etc. and it just makes the game more boring. Have one big room with a million enemies and its much more exciting.
onwards
When its kind of finished (at the moment there is no end - or any point really), I'll make it available. Be nice to have some gameplay feedback
Gameplay is weird isn't it. You think your being clever by puting in more walls, obstacles etc. and it just makes the game more boring. Have one big room with a million enemies and its much more exciting.
onwards