Search found 90 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
Search found 90 matches Page 1 of 9
by subabrain
Sun Jul 16, 2017 10:45 am
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
hi,

okay now i found out how to call a c++ method from torquescript.
Now i only have to execute the PaintMaterialAction::process method - but im sure to find it out ;)

greetz
Robert
by subabrain
Sat Jul 15, 2017 12:01 am
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
hey there, i stuck a little bit :P i want to call the method "PaintMaterialAction::process" from torquescript. so now i took the following in the c++ code: DefineEngineFunction(tesla, void, (), , "") { PaintMaterialAction::process; } and the following to the torquescript: DefineE...
by subabrain
Thu Jul 13, 2017 8:34 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
hi there, okay i made an output from the method and when i press the mouse button while painting. So its the right thing :) but i have troubles to be able to execute this function by torquescript ... i read some things but i dont know if im right .. would be nice i you could help me (maybe i will fi...
by subabrain
Wed Jul 12, 2017 7:32 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
hey - thanks alot for this answer :)

i will try to modify 8)

edit: yes it seem to work - thx!

greetz
Robert
by subabrain
Wed Jul 12, 2017 4:45 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
So now you need to know what happens when you press the mouse button on the terrain painter? I don't know where this is done, maybe try setting a breakpoint and see what happens, I think it is in terrainEditor.ed.cs yes thats the point - theres nothing shown in the console or somewhere else in tors...
by subabrain
Wed Jul 12, 2017 2:03 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
Hello again :P as i wrote: hey guys, i find out something good... thats how you an set the brush (for painting etc.): ETerrainEditor.setBrushPos(getWord(%curPos, 0) + %x, getWord(%curPos, 1) + %y); and get the brush: %curPos = ETerrainEditor.getBrushPos(); now i just need to "paint" on the...
by subabrain
Tue Jul 11, 2017 12:37 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
Hi,

yes that sounds good - but how can i attach it?

thx a lot ;)

greetz
Robert
by subabrain
Tue Jul 11, 2017 8:00 am
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
okay here a explanation for what i need this function ;) i want to mow a meadow with a ride-on mower i have all but i dont know exactly what can i do in this case. i have a few ideas - do something with the footstep or with triggers or - what i think is the best way - the terrain-painter (call from ...
by subabrain
Tue Jul 11, 2017 7:39 am
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
hi there,

sorry i want to apologize!

but i just tried everything and thats really hard to know that im new to torque engine and nobody can help.

please dont understand this wrong ...

so thanks anyway!

greetings
Robert
by subabrain
Mon Jul 10, 2017 6:55 pm
Forum: Beginner
Topic: change groundcover via script
Replies: 38
Views: 4345
Hello, im very happy to see that someone has answered. THX! So i just want to make the same like the terrain painter but from the script. I had an idea - set very much triggers and give them an groundlayer :( but it is not realizable .. i need the command to "paint" the terrain texture fro...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
Search found 90 matches Page 1 of 9