Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Chronicles

I need help with a created unit

Recommended Posts

Hello

I cant figure what is wrong and begin to be desesperate wink.gif

In what i try to do i am an eastern soldier named bob in this mission

With a trigger i create (with the camcreate command) a tank crew member me (15 meters behind me in my left)

I use this in a trigger (NO1 is the name of the created guy i want)

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">NO1 = "SoldierECrew" camcreate [(getpos bob select 0)-15 , (getpos bob select 1)-15, getpos bob select 2]<span id='postcolor'>

This works perfectly, it creates a crew member named NO1 in the 15 meters perimeter near me but now the problem appears

I put a west soldier near us for testing , in front of us , i made waypoint for him, so he can run laughing in front of me : my guy absolutely doesnt move or shoot ..... /me annoyed

I try to put a join command in a trigger by radio or by time based trigger , it doesnt work, (whatever the name i ask to join, if i ask to join me or another guy) ...... /me very annoyed

If i order a domove, a commandmove or a dofire or a command fire, they dont move/fire. .... /me very very annoyed

At first, i thought i made a mistake and they were not on my side, so i shoot an AT rocket at him (i was very annoyed by him biggrin.gif ) , and my score was a negative one, so i really dont understand what is the problem

Can someone help me on that ?

To manage created unit in missions can be very interesting for me as a trick to have lots of units without the CPU performance problem

So... help !

Share this post


Link to post
Share on other sites

Yes it's a funny thing.....l think there are limitations to the camcreate. Because if you hide a unit in the far corner of the map and bring him in with setpos getpos....he will react faithfully, unlike the hocus pocus camcreated unit. Doesn't answer your question does it... confused.gif Does having units hidden somewhere on the map (outofsite) put a strain on the system?

Share this post


Link to post
Share on other sites

To hide unit far away in an island then teleport them in the action site can help yes , i actually use that trick.

But this time i want to use to possibility of unit creation in real time i found this was possible so i said " lets get a try at this alternative add-unit thing " wink.gif , but it seems to create only empty units , whatever is the unit created (a soldier or a vehicle).

If you create (with camcreate) east soldier in front of real west soldier (real, i mean added with the normal way in the editor) , they will never consider them as enemy , they will never fire at them (even with setcaptive false , i tried that too) , you can even put a waypoint in the middle of them, they will run past them without proning or targeting them.

what a pity :/

So i am stuck with the old trick with unit teleportation from their far away hideout ( so i have to plan my mission editing much longer :/ ) until someone can tell me how to make real unit (and not empty thing) with camcreate.

If of course it is possible

Share this post


Link to post
Share on other sites

Ye l tried changing your NO1 to a west law soldier and player as east but nogo,nofire, not even an itch.....toobad.

Well maybe someone will give you a solution....if there is one,    

smile.gif

.....although, if you camcreated 300 hundred soldiers....might make the enemy flee..... tounge.gif

Share this post


Link to post
Share on other sites

300 camcreated soldier , lol , it can be frightening he he

Too bad they will just be as dangerous as a wooden target.

I was thinking i have a problem with some addons , but if in your side, it does nothing too with your own camcreat units , i will stick with the old but usefull

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> "_x setpos (getpos NAMEOFAGAMELOGICTARGETOFTELEPORTATION)" forEach units NAMEOFASQUADGROUPTOTELEPORT<span id='postcolor'> in triggers for my massive group teleportations.

This , at least works perfectly

Share this post


Link to post
Share on other sites

Well, instead of camcreate there are two commands,

called: createVehicle and createUnit

createVehicle creates an empty vehicle

createUnit creates a unit

You'll find both commands, if you look into the 3rd thread

of this mission editing section, where it says: scripting reference.

Or you can click the link below to get there:

http://www.flashpoint1985.com/cgi-bin....t=15898

~S~ CD

Share this post


Link to post
Share on other sites

Each time i tried to use the createVehicle and createUnit with my version 1.46 , i had some buggy results , lot of error message (but weird thing, the empty vehicle was created) , and the units appeared only when they wanted (that issue was very strange)

Perhaps in Resistance (as i dont have this i dont know what kind of upgrade have the editor) , these commands works perfectly, but not on my 1.46 wink.gif

Thanks for trying to help by pointing me the com ref

Share this post


Link to post
Share on other sites

hmm, my problem is somewhat related (?): i'm trying to make a jfk mission but the nifty sniper refuses to target and fire at the moveincargo jfk.

I can have him shoot the driver of the car but not a passenger, is that normal or is there a work-around?

Share this post


Link to post
Share on other sites

Have you tried ;  sniper doTarget jfk; sniper doFire jfk

as well maybe ; setCaptive True for the driver

smile.gif

no..screw that idea. seems he will only shoot at jfk when he steps out of vehicle. hmm confused.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×