zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 17, 2024 5:01:10 GMT
Dear All,
I have a problem and I would like to ask anyone who can help.
I would like to have the tanks and other complex objects appear radomly on the map (either on load, or on reset).
In the GoalArrow demo I have find the following instructions, but this cannot be applied to groups. I wouldn't mind to use these lines to different parts of the object separately if somehow the script would guarantee that they will not fall apart and appear all at random individually - the turret here and the gun there...
void Main() { if (iInitializing()) { Vector3 location;
location.x = iFloatRand(-200,200); location.y = 8; location.z = iFloatRand(-200,200);
iObjectLocationSet(OBJ_22,location);
} }
Many thanks in advance, please note that I have very little coding skills.
Cheers, Balรกzs
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 17, 2024 7:16:55 GMT
I have also seen that this cannot be applied to projectiles, joints, cameras, etc...
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 17, 2024 10:24:41 GMT
Thank you, I managed to solve it with by pure luck, one object drags along all the attributes with it to the random location. God bless! ![:)](//storage.proboards.com/forum/images/smiley/smiley.png) <3 3D Rad is genius! <3
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 17, 2024 11:35:34 GMT
and
<3 <3
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 17, 2024 17:22:06 GMT
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 18, 2024 18:37:08 GMT
Star Wars fun with randomization... ![:)](//storage.proboards.com/forum/images/smiley/smiley.png)
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 19, 2024 13:23:32 GMT
Final test of the theory. <3 All of the compiled projects are fully playable and can be downloaded using the links given in the description of the YouTube videos. ![:)](//storage.proboards.com/forum/images/smiley/smiley.png)
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 26, 2024 7:21:02 GMT
|
|
|
Post by NicusorN5 on May 26, 2024 18:15:38 GMT
Hi, kind of a late response, but my when attempting to randomize the position of a CamChase object, is it set to follow a object?
By the way, I've reformatted the code snippet in your initial post.
|
|
zsmondi83
Full Member
![*](//storage.proboards.com/forum/images/stars/star_silver.png)
I love to model different vehicles with 3D Rad, also tanks... :)
Posts: 64
|
Post by zsmondi83 on May 26, 2024 19:46:52 GMT
Hi, kind of a late response, but my when attempting to randomize the position of a CamChase object, is it set to follow a object? By the way, I've reformatted the code snippet in your initial post. Hi There, Yes indeed, most of my ideas are based on cars, so if someone uses the code snippet to a car, all attached or referenced other objects, joints, cameras and such appear correctly at the random location. Around 3 seconds are needed to enable the engine to settle the objects at their new locations. ![:)](//storage.proboards.com/forum/images/smiley/smiley.png) Hope this works for you as well. ![:)](//storage.proboards.com/forum/images/smiley/smiley.png) Cheers, B. - Thank you for the formatting as well. <3
|
|