3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: Beginner's Tutorial - Script Imposters  (Read 4890 times)

« Reply #15 on: May 15, 2012, 12:01:58 PM »
Can you add physics to the cloned objects? (like make it move or something?)
New 3DFoundry:3DFoundry.tk
« Reply #16 on: May 15, 2012, 12:57:21 PM »
Can you add physics to the cloned objects? (like make it move or something?)

First, moving is not physics.

But yes, you can move, scale and rotate an imposter.

Using rigidbody imposters, you can even make them collide.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #17 on: October 01, 2013, 01:35:55 PM »
I got these questions about scripted imposters.

Can imposter's be detected using iObjectScan?

If so how would I do it?

Thanks

--PlayDasher--
New 3DFoundry:3DFoundry.tk
« Reply #18 on: October 01, 2013, 02:29:30 PM »
ya know... before you guys ask these **** ***** questions... have ya ever tried doing any of these things first...

before you toss your hands to heaven and give up and ask someone to do your thinking for ya... has any of ya even tried to figure these things out first...

don't get me wrong... i aint jumpin' on anyone here, but it would seem like trying to do it first would make jack a smarter boy than by asking someone how to do it... 

problem solving... that's the key to learning how to program... or how to do anything as a matter of fact...


that last question...  first do an object scan of a regular object... then make a few imposters and try to scan them...   

geeez... what's so hard about doin that yourself...


--Mike
« Reply #19 on: October 01, 2013, 02:35:05 PM »
Mike, I consider this question slightly more advanced and therefore I can accept it. You might have exaggerated a little bit.

PlayDasher, no, you can't. The iObjectScan() cannot return an ID and nor can the actual scanner object.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #20 on: October 01, 2013, 02:45:24 PM »
Thanks Robert.
Mike: I wanted to try but i didn't know how. Usually to use iObjectScan i would have to specify an OBJ_ id but when create an imposer i was unsure as what to put in this obj id that would represent the impostered RB, so i thought that the forum would be the best place to go for help...
New 3DFoundry:3DFoundry.tk
« Reply #21 on: October 01, 2013, 03:17:03 PM »
Quote
Usually to use iObjectScan i would have to specify an OBJ_ id

not just usually... you've gotta supply an objectID to the function all the time...

therefore, you've gotta conclude that unless you can supply an OBJECT_ID to the function, you can't use it... right???

there's the answer to your question... plain and simple...

this one you could've figured out yourself PD... you've been around 3DRAD long enough, and you've shown the ability to think and chew gum at the same time...

you're no longer a beginner, so stop acting like one...


NOW... WHAT ARE YA GONNA DO...  just because someone told ya it can't be done, are ya gonna give up???

are ya gonna believe em... are ya gonna let 3DRAD show you who is boss  :)

suppose i told ya that it could be done...  are ya gonna believe me  :)

or are ya gonna take your own future in your own hands and supply YOUR OWN ANSWERS to your questions...



--Mike

« Last Edit: October 01, 2013, 03:33:39 PM by Mike Hense »
« Reply #22 on: October 02, 2013, 11:25:53 AM »
Quote
Usually to use iObjectScan i would have to specify an OBJ_ id

not just usually... you've gotta supply an objectID to the function all the time...

therefore, you've gotta conclude that unless you can supply an OBJECT_ID to the function, you can't use it... right???

there's the answer to your question... plain and simple...

this one you could've figured out yourself PD... you've been around 3DRAD long enough, and you've shown the ability to think and chew gum at the same time...

you're no longer a beginner, so stop acting like one...


NOW... WHAT ARE YA GONNA DO...  just because someone told ya it can't be done, are ya gonna give up???

are ya gonna believe em... are ya gonna let 3DRAD show you who is boss  :)

suppose i told ya that it could be done...  are ya gonna believe me  :)

or are ya gonna take your own future in your own hands and supply YOUR OWN ANSWERS to your questions...



--Mike
I'm sorry mike but can we end the conversation here.
New 3DFoundry:3DFoundry.tk
« Reply #23 on: October 02, 2013, 11:34:58 AM »
as you wish PD... good luck...



for the other people here who refuse to be defeated, and would like to know whether or not they can use ObjectScan() to detect imposters... the answer is NO...

and YES...


like Roberto said above, you need to supply an obj_ID to iObjectScan(), and since the imposters don't make one available, the function can't be used directly...

but there is a workaround... or two...

1 - the easiest one would be to use the Scanner Object (instead of the function)... it detects imposter rbs...

2 - the second approach would be to code a script that would loop around and position the rigidbody at each imposter location and do the scan for each when a shot is fired...  if you don't have too many imposter targets this should work...




--Mike
« Last Edit: October 02, 2013, 02:58:48 PM by Mike Hense »
« Reply #24 on: October 02, 2013, 05:29:58 PM »
again... for those interested...

a lil 3dr demo that shows both methods attached...

by default it is setup to show the second approach mentioned above... using the iObjectScan() function, wrapped in another function to make it easier to use...

just look at one of the yellow fishes and left click to shoot... 

you can see the rigid body moving to the position of each imposter skinmesh before the scan is performed...


to see the first approach mentioned above, disable  the IOBJECTSCAN  script and enable the SCANNER OBJECT script and run the project again...


--Mike


Pages: 1 [2]