Jump to content

Random player position with already existing CC


Grapjas
 Share

Recommended Posts

@badosu 

    Engine.CameraMoveTo(1000, 800); <-- should be correct, but doesnt work. Gives back 'CameraMoveTo is not a function' even though it's literally used this way in other scripts, like your monitor mod but also in vanilla. Must be a root level issue.

    QueryPlayerIDInterface(1).SetStartingCamera(1000, 0); <-- Throws no errors but doesnt do anything either. 

Do you maybe have ideas on how i could manipulate where i want the camera to be? It's my only issue left right now with this mod.

 

Link to comment
Share on other sites

21 minutes ago, Stan` said:

Camera is usually overriden by the map, it tries to locate the cc IIRC https://github.com/0ad/0ad/blob/965f7c7e0afdac1b83c3a31c4fe702cdc1be18cf/source/graphics/MapReader.cpp#L1112

It does so correctly, but because i'm randomizing the positions of players it just takes the old spot where the player was. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...