whats this

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

whats this

Post by darksmaster923 »

whats this

SetUseItem(char *ItemName );

Sets the specified item to be the current Use Item .
Herp derp.
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

The idea is that you set an item (=attribute) to be the 'UseItem' and then you can get its name with another command (don't know its name now, maybe GetUseItem()?) when you need it again...

I don't see any other use for this command...
Everyone can see the difficult, but only the wise can see the simple.
-----
User avatar
QuestOfDreams
Site Admin
Posts: 1525
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

If an item is set as use item it will be used when you press the use key the next time, this is the same as selecting an item from the inventory for use with the use key. :roll:
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

okay, but how do you set the item
Herp derp.
User avatar
QuestOfDreams
Site Admin
Posts: 1525
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Post by QuestOfDreams »

Huuu? Thought we were talking about the SetUseItem command?
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

Post by darksmaster923 »

ya, but i want to know how to set the use item now
Herp derp.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Uhh, the command is called 'SetUseItem()' - it sets the use item.
If you're meaning something else, please do explain a bit more. :)
Pain is only psychological.
Post Reply