Replies: 2 (Who?), Viewed: 470 times.
#1
20th Feb 2020 at 11:34 AM
Advertisement
#2
20th Feb 2020 at 3:39 PM
Last edited by gamefreak130 : 20th Feb 2020 at 4:18 PM.
#3
20th Feb 2020 at 5:20 PM
|
Posts: 562
Thanks: 3598 in 11 Posts
Terrain sTerrain = new Terrain(); Simulator.AddObjectWithId(sTerrain, new ObjectGuid(4294967297uL));
Posts: 437
Thanks: 5330 in 22 Posts
hello again I'm trying to add a "Collect Water" interaction to water, but I don't know how to actually add the interaction to the terrain, because the terrain isn't like a regular object. In my OnWorldLoadFinished function, I added
Code:
Terrain sTerrain = new Terrain(); Simulator.AddObjectWithId(sTerrain, new ObjectGuid(4294967297uL)); And it added the Collect Water interaction, but it also makes all terrain interactions no longer work...so that was not a success. So how do I add an interaction to the terrain? Thanks in advance! |
if (Terrain.Singleton != null) { //Assuming the interaction class is CollectWater //If you aren't using a singleton, just pass in a new CollectWater.Definition() Terrain.Singleton.AddInteraction(CollectWater.Singleton); }
Posts: 562
Thanks: 3598 in 11 Posts
|
This site is not endorsed by or affiliated with Electronic Arts, or its licensors. Trademarks are the property of their respective owners. Game content and materials copyright Electronic Arts Inc. and its licensors. All Rights Reserved.
Site version: v3.5.0. ModTheSims, ModTheSims2 and MTS2 © 2004-2023.