Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

[Question] Can I spawn a grid via script mod?

Discussion in 'Modding' started by SGCam, Feb 17, 2017.

  1. SGCam

    Joined:
    Jul 24, 2016
    Messages:
    6
    Trophy Points:
    1
    So after looking thoroughly over the interwebs, I have found nothing talking about this. Doing it as a respawn ship is not helpful for my purposes, so I'm hoping there is a way to essentially paste a blueprint at x location.

    Edit: Trawling VS, found this function,
    MyAPIGateway.PrefabManager.SpawnPrefab(List<IMyCubeGrid> resultList, string prefabName, Vector3D position, Vector3D forward, Vector3D up)

    What is resultList supposed to be? Its a list of IMyCubeGrid objects obviously, but what does that mean?


    Additionally, tips for adding custom prefabs? (nevermind, found a guide for prefabs... http://steamcommunity.com/sharedfiles/filedetails/?id=311423213)
     
    Last edited: Feb 18, 2017