"Use" key changing textures on game models.

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

"Use" key changing textures on game models.

Post by incenseman2003 »

I have a piece of geometry that I have turned into a model. I wish to have it set to change textures when the "use item" key is pressed. Can someone tell me in detail how this is done?

I have tried several ways and they have all failed.

I dont see anything in the manual or faq that explains this as it needs to be explained to make it do what I want it to do.

Is it even possible?

If so, is there anyone that knows exactly how its done?
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

You can for example use a Trigger entity and set UseKey to true. Use this trigger to activate a Flipbook entity.
incenseman2003
Posts: 320
Joined: Sat Mar 11, 2006 11:41 pm

Post by incenseman2003 »

QuestOfDreams wrote:You can for example use a Trigger entity and set UseKey to true. Use this trigger to activate a Flipbook entity.
I have set the name of the world model to elevctl.

Ihave the trigger set as follows:
AnmationSpeed= 1.0
bAudioloops= False
bNoCollide= True
bOneShot= True
Model= elevctl
origin= 303 109 149
PlayerOnly= True
szEntityNmae= trigger1
szSoundFile=
TimOff=
TimeOn=
TriggerName=
UseKey= True

I have the flipbook set as follows:
Alpha= 255.0
AlphNameBase=
AlphaRate= 0.0
AtLevelStart= False
BitMapCount= 2
BmpNameBase= elevctl
BoneName=
Color= 255.0 255.0 255.0
EntityName=
Model= <null>
origin= 323 115 149
Rotation= 0.0
RotationRate= 0.0
Scale= 1.0
ScaleRate= 0.0
Speed= 5
Style= 4
szEntityName=
TextureName= elevctllcked
TriggerName= trigger1

I have checked the texture names to be replaced and it is correct as "elevctllcked".

I have checked the bitmaps to be played and they are correctly named as elevctl0.bmp and elevctl1.bmp, and the path to them is correct.

The FlipBook plays when I dont use the trigger, but it plays on load of the game and keeps going.

When I apply the trigger it wil not play at all and will not respond to the use key. The usekey is set to be "E".

According to the manual it seems to be correct, but just doesnt work.

Any ideas?


Edit 4:34 PM 11/25/2006:
Is there a demo that has been made with this type of thing in it?
Is there anyone that can shed some light on the subject at all?
Is the trigger entity faulty in that it only works with some entities and not others?
Can someone else try this and see if it can be done and post thier results?

Thanks,

Hope to hear something soon.


----------------------
Edit 12:42 PM 12/7/2006:

I finally got it to work. It was so simple yet no one could see what needed tobe done. Especially me.

I shoud have had the trigger set as follows:
AnmationSpeed= 1.0
bAudioloops= False
bNoCollide= False
bOneShot= True
Model= elevctl
origin= 303 109 149
PlayerOnly= True
szEntityNmae= trigger1
szSoundFile=
TimOff=
TimeOn=
TriggerName=
UseKey= True

Now it works.
Have a great day.
Patience and tolerance are the keys to the passage of knowledge. Even those that are the most knowledgeable started with many questions.
Post Reply