Aller au contenu

Photo

change placeable appearance


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
DM_Vecna

DM_Vecna
  • Members
  • 280 messages
I am having a brain freeze right now.

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
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
You could destroy the placeable thats there then spawn a new one in the same spot.



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
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
You could try and hide your invisable object under another placeable and destroy that one so youll be able to see it.

#4
Blasco-Yang

Blasco-Yang
  • Members
  • 8 messages
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/

Modifié par Blasco-Yang, 03 août 2010 - 12:31 .


#5
420

420
  • Members
  • 190 messages

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/

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.

ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_CUTSCENE_INVISIBILITY), oObject);


-420

#6
Builder_Anthony

Builder_Anthony
  • Members
  • 450 messages
Wow thats a good idea useing cutscene.

#7
Jez_fr

Jez_fr
  • Members
  • 302 messages
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.

#8
420

420
  • Members
  • 190 messages

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.

You can use SetFacing() to rotate a placeable but you can't actually move placeables to a different location.

-420