Aller au contenu

Photo

Usable/Unusable/Static/Placeable item?


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

#1
Xeneize

Xeneize
  • Members
  • 133 messages

Hello guys!

 

I was wondering if there is a function that allows you to, when using something, to make a placeable toggle between either becoming usable or unusable?

 

I also would like to know if making the item placeable/static is possible too.

 

 

Thanks for the help in advance.



#2
Tchos

Tchos
  • Members
  • 5 063 messages

You can't swap it between static and not, but you can switch between usable and non-usable with the SetUseable function.  There's also a ga_ script to do it from within a conversation.



#3
Morbane

Morbane
  • Members
  • 1 883 messages

take notice of the "Script Assist" tool in the toolset scripting pane - it is very intuitive and will give results on just 3 characters - once you see the long list, you can add letters to come up with a short list of functions that may be what you're looking for :)

 

examples: "get" "action" "int" etc...



#4
4760

4760
  • Members
  • 1 212 messages

Regarding the static toggle, you may have a workaround if you put two versions of the placeable at the same location (copy/paste the coordinates from one to the other to be sure) and set one as static, the other as not static.

Then, a simple script to reduce the scale (SetScale (oPLC, 0.001, 0.001, 0.001) - of course you need to define oPLC first!) will make the non-static placeable so small that it won't be selectable any more.