View Single Post
Old 08-20-2004, 08:40 AM   #1 (permalink)
coolfile
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default How to OCL something at random position [Solved]

I use OCLUpdate to create some objects around a Unit. but it seems that the disposition setting only works for CreateDebris. :dead: All of them are created at the position of the creator.
How to create some objects at random positions around the creator. here is my code. what's going wrong?
Code:
ObjectCreationList OCL_ChinaBlackLotusSuperInternetVirus
  CreateObject
    ObjectNames = BlackLotusSuperInternetVirus
    Disposition = RANDOM_FORCE SEND_IT_FLYING
    Offset = X:0 Y:0 Z:10
    Count = 1
    MinForceMagnitude = 10
    MaxForceMagnitude = 20
    SpinRate = 180
    MinForcePitch = 0
    MaxForcePitch = 90
  End
End
Thanks for any help.
coolfile is offline   Reply With Quote