Bunow Posted November 27, 2014 Share Posted November 27, 2014 Hi!I'm trying to make a mod where an object spawns randomly in the map, in a defined day/time in the game ( like the Goose egg) But I'm realy a shame at coding so i ask you help! Link to comment Share on other sites More sharing options...
Mobbstar Posted November 27, 2014 Share Posted November 27, 2014 You can spawn the object and then have to set its position using Transform:SetPosition(x,y,z). y should be 0, x and z should be random, but the spot should meet a certain criteria: you can check whether that spot turned out to be actual land using inst:IsOnValidGround(). Link to comment Share on other sites More sharing options...
Bunow Posted November 28, 2014 Author Share Posted November 28, 2014 Ok! But what abbout the time where the object spawns?? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.