Difference between revisions of "Removing "Placeatme Objects""

Jump to navigation Jump to search
m
no edit summary
imported>Elder
m
imported>Elder
m
Line 8: Line 8:




Example #1
Example #1: effect in external script (not on PlaceAtMe object)


  ; creation
  ; creation
Line 15: Line 15:
  ; destruction
  ; destruction
  placerRef.Activate player
  placerRef.Activate player
  placerRef.RemoveMe
  placerRef.RemoveMe         ; safe only for un-scripted items


If you do Activate followed directly by RemoveMe it will work but any attached script will not be transferred. As stated on the CS Wiki you should ensure a frame click happens. In fact this is not appear to be actually necessary - you can achieve the same effect by having another script do the RemoveMe for you - it's just that the current script has to return.
If you do Activate followed directly by RemoveMe it will work but any attached script will not be transferred. As stated on the CS Wiki you should ensure a frame click happens. In fact this is not appear to be actually necessary - you can achieve the same effect by having another script do the RemoveMe for you - it's just that the current script has to return.
Line 21: Line 21:
In the following examples the same effect will work for scripted objects.
In the following examples the same effect will work for scripted objects.


For example 2 the effect is split between the creator and target object.
 
Example #2: effect split between the creator and target object.


  scn MyPlacerScript
  scn MyPlacerScript
Line 43: Line 44:
You can also get more imaginative but you may have some extra timing issues.
You can also get more imaginative but you may have some extra timing issues.


Example 3 requires a bit more work on the placer object:
 
Example #3: effect on a scripted item (triggered by Disable)


  short stage
  short stage
Anonymous user

Navigation menu