change placeable appearance
#1
Posté 02 août 2010 - 11:19
Is it possible to change the appearance of a placeable through a scripting command?
e.g. can I make an invisible placeable visible when triggered? I don't want to just create a new one as it has contents and I would rather just make it visible.
Thanks for any help!
#2
Posté 02 août 2010 - 11:24
As for making it visable i would just have it in a custom item catagory and spawn it in thereby keeping your inventory intact.
#3
Posté 02 août 2010 - 11:26
#4
Posté 03 août 2010 - 12:28
Seems like I recall that SunJammer created a series of identical placeables with that effect and removed the effect in quick order to create the illusion of "moving placeables" in one of his library of functions.
Hopefully, I got the link right:
www.sunjammer.co.uk/
Modifié par Blasco-Yang, 03 août 2010 - 12:31 .
#5
Posté 03 août 2010 - 06:40
I used this method to create a ship's steering wheel that spun back and forth. Just placed a bunch of the same object down in slightly different possitions then made all but one cutscene invisible at a time. The destroy/create method can create problems if you stay in the area to long. The fps drops and the game starts to lag until you leave the area.Blasco-Yang wrote...
Unless I'm mistaken, you can apply a cutscene invisibility effect on the placeable and remove it later via scripting.
Seems like I recall that SunJammer created a series of identical placeables with that effect and removed the effect in quick order to create the illusion of "moving placeables" in one of his library of functions.
Hopefully, I got the link right:
www.sunjammer.co.uk/
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_CUTSCENE_INVISIBILITY), oObject);
-420
#6
Posté 04 août 2010 - 12:47
#7
Posté 04 août 2010 - 01:09
#8
Posté 04 août 2010 - 05:17
You can use SetFacing() to rotate a placeable but you can't actually move placeables to a different location.Jez_fr wrote...
Maybe you could just teleport (ActionJumpToLocation) the plc where you want it to be from a remote secret area? That would remove the maybe unwanted side effect of possibly bouncing of the invisible plc if the PC inadvertantly want to walk through it.
-420





Retour en haut







