Changing entity properties in script

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Changing entity properties in script

Post by Larryboy »

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
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

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.

I seem to be clogging up this forum with my questions....sorry
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. :)
Pain is only psychological.
Nout
Posts: 136
Joined: Tue Jul 05, 2005 5:14 pm

Post by Nout »

Not possible today but is possible with additional coding.
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

As I have lots of enemies firing at once so I'll make lots of DecalDefines and lots of weapons, and select them using a random. Its not a seroius game anyway but I think it would be a 'nice to have'.

Learning C++ after I've mastered scripting - wish me luck :?
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

GooD! LUCK! I really should start learning coding... :roll: 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! :D

(sorry to go off topic there)
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

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
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

thanks ill look at that when I get a chance! What kinda scripting does that teach you???
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

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)

Image
many thanks
User avatar
psYco
Posts: 782
Joined: Wed Mar 15, 2006 10:55 am
Location: England

Post by psYco »

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!
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

Glad you like the look of the game. gonna call it 'Death by Statistics' or something. Its growing organicly which means that I haven't planned it and I don't know what I'm doing :P Its nice to know that you can waste as much of your life playing your own game as you can playing someone elses..
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

gonna call it 'Death by Statistics' or something
Hehe, funny. I like that. :D
Pain is only psychological.
MakerOfGames
Posts: 866
Joined: Fri Jul 08, 2005 4:27 am
Location: PA, USA

Post by MakerOfGames »

Very nice screen! I am looking forward to seeing more of your game!
Think outside the box.
To go on an adventure, one must discard the comforts and safety of the known and trusted.
GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 »

wow! that looks really cool. I'd definitely play it! :) four stars
Check out my band
Tougher Than Fort Knox
Image
User avatar
Larryboy
Posts: 59
Joined: Wed Sep 06, 2006 2:31 pm
Location: UK

Post by Larryboy »

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
Post Reply