Jump to content
Ganvai84

createVehicle on Marker - Problem with Ground Level

Recommended Posts

Hello guys,

I want to create a crater and smoke on the position of a destroyed vehicle.
As the vehicle isn't alive anymore when I want to create the crater I have an empty marker that is set every 10 seconds on the map.

When I test it in the Debug console this works:

"Land_ShellCrater_02_extralarge_F" createVehicle [5701.8,3303.18,0];

But when I try to use the markers position the crater doesn't appear.

mPos2 = getMarkerPos "truckmarker";
"Land_ShellCrater_02_extralarge_F" createVehicle mPos2;

I think it has something to do with the ground level but I am not sure how to solve this.

Thankful for any further idea.

Cheers, Jan

Share this post


Link to post
Share on other sites

Should work fine. Double-check everything. 

Share this post


Link to post
Share on other sites

mPos2 = getMarkerPos "truckmarker";

systemChat str mPos2;
"Land_ShellCrater_02_extralarge_F" createVehicle mPos2;

 

and read the chat as test.

Share this post


Link to post
Share on other sites

Hey guys,

it seems it just didn't work in the Debug console in Eden. When I tried it in the running game it works.

Thank you for the input. I was really confused why I didn't get it to work.

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

×