Jump to content
Sign in to follow this  
[lol]clan killer bee

Place a object straight on map

Recommended Posts

Hi guys still editing here on a mission but I still gonna need some more info !

I wanted to place a object in the water in this case the

  	Land_Pier_small_F

I created a invisible helipad and in the init I had placed this code

piersmall= "Land_Pier_small_F" createVehicle position this; deleteVehicle this;

All good and all fine (not sure if this also works in MP )

The problem that I ran into was that the object didn't aline to the beach and straight into the water.

I did set the hight of the object with alt position and such but the pier did stand in a angle diapering into the water. :j:

I also tried these:

https://community.bistudio.com/wiki/surfaceNormal

https://community.bistudio.com/wiki/surfaceIsWater

https://community.bistudio.com/wiki/surfaceType

None seemed to help !

I might have overlooked something or missed someting.

Does someone know how to fix this problem ?

With regards,

KillerBee

---------- Post added at 21:26 ---------- Previous post was at 21:15 ----------

Okay by accident I had hit a space and the code wasn't implemented right.

I got it straght on from the shore into the water by this !

piersmall= "Land_Pier_small_F" createVehicle position this; deleteVehicle this; piersmall setVectorUp [0,0,40];

I had to set it to 40.

Other problem did rise up.

I needed to turn the pier a little like 45 degrees arround the axis.

I triedt to implement it the first 0 and the second 0 but result was

1: the pier tilled to the left or right

2: the pier tiled up and down in the specific amount of angle being given in.

Question how to turn the pier ?

In the mean time I had a pm form someone and I got the direction solved with the command

_soldier1 setDir 45 

Problem still is that the object get lower in the water when I replace the object more to the sea it doesn't stay the same hight?

Okay this is 10 min later and I solved the darn problem.

This is what I had to do to fix it !

SOLVED

TO solve my problem I got this in the init:

piersmall= "Land_Pier_small_F" createVehicle position this; deleteVehicle this; piersmall setVectorUp [0,0,40]; piersmall setDir 78; piersmall setPos [getPos this select 0, getPos this select 1, 1.1]

Not sure this does work for MP yet !

Hope this can help someone else !

Edited by [LOL]clan Killer Bee

Share this post


Link to post
Share on other sites

you will have duplicate objects in mp with this method. you need to add before everything

if (!isServer) exitWith {};

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  

×