Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Teleporting items & Vaporizing items
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#4
RE: Teleporting items & Vaporizing items

(10-21-2012, 08:19 AM)beecake Wrote: How many items are we talking about vaporizing?
Well in the main story (map:ch02/15_prison_north) all the itams in the area are vaporizable except glass and metal.I would like to do it with all the items in the area too(I dont care about glass and metal).

(10-21-2012, 01:35 PM)The chaser Wrote:
(10-21-2012, 01:46 AM)belikov Wrote: I need help with two things..
1)
I want to teleport an item every time it's leaving the selected area back inside so it will triger the commands again...I tried some commands but the item stops being usable.

2)
I would like to vaporize any item that touches the acid... I know that there is vaporizing comands in the main story scripts but it is really confusing and i couldn't use it on any other map(Of course with modifications).

Sorry for any English mistakes I made.
For 1 (I don't really know if you can teleport items, but):

AddEntityCollideCallback("nameoftheitem", "ScriptTele", "Tele", false, -1);

For 2:

SetPropActiveAndFade("nameofitem", false, 3);

Play with the values so you get the desired effect.
About the 1)
Would the script work on that item as it was previously(before it got teleported)?

And about the 2)
I know that command but...Is it possible to vaporize all items without using this on every item name, I mean in the main story the algorith is about 20 lines without naming every item separately.

[Image: 2H1Mc.jpg]
(This post was last modified: 10-21-2012, 03:12 PM by ZodiaC.)
10-21-2012, 03:06 PM
Find


Messages In This Thread
Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 01:46 AM
RE: Teleporting items & Vaporizing items - by ZodiaC - 10-21-2012, 03:06 PM



Users browsing this thread: 1 Guest(s)