logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,668
Posts: 94,539

Administrators:
DeeZire, Redemption

There are currently 46 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » How to OCL something at random position [Solved]

Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 08-20-2004, 08:40 AM   #1 (permalink)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-20-2004, 10:39 AM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Rep. of Ireland
Posts: 373
Default

Code:
ObjectCreationList OCL_ChinaBlackLotusSuperInternetVirus 
  CreateObject
    ObjectNames = BlackLotusSuperInternetVirus
    Disposition = LIKE_EXISTING
    Count = 1
  End
End
simple as that
Waraddict is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-20-2004, 11:44 AM   #3 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

No, it isn't what I want. there should be some distance between those objects and the creator.
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-20-2004, 11:47 AM   #4 (permalink)
Senior Member
 
Join Date: Nov 2003
Location: The Netherlands
Posts: 794
Send a message via MSN to The_Hunter
Default

give it a " Offset = *Coords* "
The_Hunter is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-20-2004, 12:04 PM   #5 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

random postions they should be.
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-21-2004, 05:07 AM   #6 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

It works!
Code:
ObjectCreationList OCL_ChinaBlackLotusSuperInternetVirus
  CreateObject
    ObjectNames = BlackLotusSuperInternetVirus
    Count = 3
    SpreadFormation = Yes
    MinDistanceAFormation = 50.0
    MinDistanceBFormation = 50.0
    MaxDistanceFormation = 150.0
  End
End
Thanks a lot, Maddoc and everyone gave out helps.
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-21-2004, 06:40 AM   #7 (permalink)
Senior Member
 
Join Date: Feb 2004
Location: China
Posts: 356
Default

Here is the screen shot. It works very well :lol:
coolfile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-21-2004, 07:47 AM   #8 (permalink)
Senior Member
 
Join Date: Feb 2004
Posts: 872
Default

I like it, very cool indeed.
Hostile is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Model Position Animation goblinsleez Generals & Zero Hour Editing 1 04-02-2005 11:25 AM
Death From Above - Taking the elevated position AAK625 Generals & Zero Hour Editing 4 07-05-2004 09:55 PM
[TS/RA2/YR] Position & Angle of building SHPs Flyby Member Written Tutorials 0 03-09-2004 07:13 AM
The deal with Random...... LtZack Red Alert 2 & Yuri's Revenge Editing 22 09-19-2003 12:08 PM
random? Botjer Generals & Zero Hour Editing 0 07-23-2003 07:18 AM


All times are GMT -4. The time now is 03:13 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.