Unit Pitch, Issue

rover2341

Is riding a roller coaster...Wee!
Reaction score
114
Code:
	UnitCreate(1,"Carrier", 0, 1,Point(0,0),0);	
	
	fixed lv_forwardX;
        fixed lv_forwardY;
        fixed lv_forwardZ;
        fixed lv_upX;
        fixed lv_upY;
        fixed lv_upZ;

        // Variable Initialization
        lv_forwardX = Cos(90);
        lv_forwardY = Sin(90);
        lv_forwardZ = Sin(145);
        lv_upX = Cos(0);
        lv_upY = Sin(0);
        lv_upZ = Cos(145);

        // Implementation
        libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), libNtve_gf_SetRotation(lv_forwardX, lv_forwardY, lv_forwardZ, lv_upX, lv_upY, lv_upZ));

Why Doesnt this work? Anyone know I am trying to use this from a sample.
 

wingdnosring

New Member
Reaction score
16
Depends on the situation. Is the unit you're using that on moving or attacking or using an order of some kind?

That actor message is undone upon issued orders, unless you have the Lock Rotation option set in the unit's actor.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
114
Thanks for info and no the unit isnt moving. this is pretty much all the code in the map I am just trying to get this to work.

From Testing it seems It doesnt like to units who are placed after the game starts... Cant Figure it out.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
114
Works For Units placed before game starts other wise cant get it to go.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
114
Last bump... If anyone has any Idea help. I have been working on this for 4 days stright... approx 6-7 hours total time spent trying to solve this. And I cant move on with out this.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top