Hello all:
I'm trying to change the pick up message on some default items. For example, I changed the body armor from green to gold and I want the message to say, "You found Golden Armor". I was able to change the armors color to gold and I also went into the actor class browser, right clicked on the armor and changed the pickup message from "you got the body armor" to "you found the golden armor" but it's not working.....what am I missing??
Thanks!
Pick Up Messages
Re: Pick Up Messages
See this:
It means that the pickup message is retrieved from the class, not from the class instance itself.
Solution: Sub class your custom Inventory, set the new pickup message in the defaults and add these to your map.
<EDIT>
Added a link to the wiki for Sub class
</EDIT>
Code: Select all
class Inventory extends Actor abstract native nativereplication;
...
function Touch( actor Other ) {
...
if ( PickupMessageClass == None )
Pawn(Other).ClientMessage(PickupMessage, 'Pickup');
else
Pawn(Other).ReceiveLocalizedMessage( PickupMessageClass, 0, None, None, Self.Class );
...
Solution: Sub class your custom Inventory, set the new pickup message in the defaults and add these to your map.
<EDIT>
Added a link to the wiki for Sub class
</EDIT>
Last edited by Barbie on Sat Feb 11, 2017 5:29 pm, edited 1 time in total.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
- UnrealGGecko
- Godlike
- Posts: 2904
- Joined: Wed Feb 01, 2012 11:26 am
- Personal rank: GEx the Gecko
- Location: Kaunas, Lithuania
- Contact:
Re: Pick Up Messages
http://www.unrealplayground.com/forums/ ... le&id=5266 <- this map has what you need.
My work for UT99: Counter-Strike VP, MaleOne+ (now updated), FemaleOne+ and the FemaleTwo220 voicepacks DM-XC-NaliTreeV2 (from the 2012 Xmas Contest mappack), DM/DOM-20AC-CastleGeorgeV3 (from the 20th Anniversary Contest mappack), DM-UFFO, DM-WreckingBall, (NEW!) CTFM-Sundial
my small spec of files at Google Drive
List of console converted maps, models & more!
Re: Pick Up Messages
Or have a look at the attached test map. ;o)
Screenshot
- Attachments
-
- TestPickupMessages.unr.7z
- (10.08 KiB) Downloaded 54 times
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
- Chamberly
- Godlike
- Posts: 1963
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
- Contact:
Re: Pick Up Messages
I'm not sure what you mean here. Have you changed the pickup message of an object of the default package or of a "MyLevel" object? If the latter it should work. If former: Never change default packages!Chamberly wrote:that's what I did and it didn't even save.
Sorry, I misunderstood this in first reading. It looks like you wanted to change the pickup message in the stock package (BotPack, UnrealShare, ...): never do such (see above warning).Loose Cannon wrote:I also went into the actor class browser, right clicked on the armor and changed the pickup message
Last edited by Barbie on Sat Feb 11, 2017 8:24 pm, edited 1 time in total.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
- Chamberly
- Godlike
- Posts: 1963
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
- Contact:
Re: Pick Up Messages
Like what you posted with the pic.Barbie wrote:I'm not sure what you mean here. Have you changed the pickup message of an object of the default package or of a "MyLevel" object? If the latter it should work. If former: Never change default packages!Chamberly wrote:that's what I did and it didn't even save.
Re: Pick Up Messages
Then I assume you have created a sub class of an existing Actor, put it into package "MyLevel" and changed some attributes or code of that new created class.Chamberly wrote:Like what you posted with the pic.
Have you also created an instance of this class? Because UnrealEd throws away all objects that are not referenced in a way when saving the map. If you reopen the map that MyLevel-Actor will have been gone.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett