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.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. SGCam Trainee Engineer

    Messages:
    6
    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
  2. soknorb Trainee Engineer

    Messages:
    63
    You can look at FighterCommand. unpackage that mod and look at the Spawner class. if you are interested still.
     
  3. Rantalunta Trainee Engineer

    Messages:
    2
    Last edited: Jul 2, 2017
Thread Status:
This last post in this thread was made more than 31 days old.