Jump to content
Barba-negra

createvehicle ModelToWorld another object

Recommended Posts

Hello friends, greetings and all, I am trying to create an object as far as the position of another, but the message is throwing me an error:

 

_localitation = central1 modelToWorld [-50,-50,0]; 
iluminacion = "Jeep" createVehicle position _localitation; 
 

but is giving me an error in #position, why? any ideas ?

Share this post


Link to post
Share on other sites

position is waiting for an object or a location (village, town,... see BIKI)

Try:

iluminacion = "Jeep" createVehicle _localitation;

  • Like 1

Share this post


Link to post
Share on other sites

Hello pierremgi , but I'm giving it here 

 

 

_localitation = central1 modelToWorld [-50,-50,0]; 

 

,or is it bad?, central1 is an object placed on the map

Share this post


Link to post
Share on other sites

The command modelToWorld returns a position and you assigned that to variable _localitation. Then you tried to find the "position" of a position. Just replace "position _localitation" to just "_localitation"

  • Like 1

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

×