![]() |
Item glow on non-item - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Item glow on non-item (/thread-15486.html) Pages:
1
2
|
Item glow on non-item - Damascus - 05-18-2012 Is there a way to give a glow to something that's not an item? I'd like to trick a player into trying to pick up something. If giving it an item glow isn't possible, can I instead make an item fade away instead of going into the player's inventory when they interact with it? RE: Item glow on non-item - FlawlessHappiness - 05-18-2012 void OnStart() { SetEntityPlayerInteractCallback("ITEMNAME", "OnInteract", true); } void OnInteract(string &in asEntity) { SetPropEffectActive("ITEMNAME", false, 1); } RE: Item glow on non-item - Adrianis - 05-18-2012 It'll just dissapear with that function though beecake, rather than a more aesthetically pleasing fade. You could try playing around with masking it with some PS RE: Item glow on non-item - SilentStriker - 05-18-2012 SetPropActiveAndFade(string& asName, bool abActive, float afFadeTime); possibly? RE: Item glow on non-item - Damascus - 05-18-2012 It does fade away like it's supposed to, but it still goes into the player's inventory, which I'm trying to prevent. RE: Item glow on non-item - Unearthlybrutal - 05-18-2012 RemoveItem(string& asName); RE: Item glow on non-item - Damascus - 05-18-2012 That still doesn't prevent the picking up sound and message, though. RE: Item glow on non-item - FlawlessHappiness - 05-19-2012 (05-18-2012, 07:35 PM)Damascus Wrote: That still doesn't prevent the picking up sound and message, though.I would guess you should use different scripts here... Cover the item in a script area. Then you when you are close enough, and your crosshair is in the script area, make the script: SetEntityCustomFocusCrossHair(string& asName, string& asCrossHair); So the crosshair changes, but instead of picking it up you make it an interactcallback so the item disappears when you interacts with the script area. RE: Item glow on non-item - Damascus - 05-19-2012 Ah that one worked like a charm! Thank you very much! RE: Item glow on non-item - FlawlessHappiness - 05-20-2012 No problem ![]() |