Camera script examples?
Moderator: English Moderator
-
- Posts: 60
- Joined: 25 Oct 2011, 02:11
- Location: Wisconsin
- Contact:
Camera script examples?
Are there any camera script examples? I'd like to insert an effect in a clip (such as an image or text) on a multilap track and I want it to be randomized each time so it's not the same thing every time. It should be only a few lines of code that I could write in 5 minutes, but it's not like there's any useful documentation out there that says what contexts contain which functions.
-
- Posts: 60
- Joined: 25 Oct 2011, 02:11
- Location: Wisconsin
- Contact:
Re: Camera script examples?
Ok here is what I am trying to do for an example. The intention was to put an image on the screen just to see if it would work.
It tells me the member or variable (TrackImage, ImgPosX, etc etc which are all listed in the "documentation" (and I use that term out of generosity)) does not exist. Presumably Nadeo has made these functions inaccessible to users.
WTF. What was the point of telling us about all these methods and properties that we can't use?
Code: Select all
#RequireContext CGameCtnMediaBlockCameraEffectScript
#Include "MathLib" as MathLib
declare CGameCtnMediaBlockImage x;
x.TrackImage ="http://serpwidgets.com/tm2/mapimg/nukemapcar.png";
x.ImagePosX=(MathLib::Rnd()*2)-1;
x.ImagePosY=(MathLib::Rnd()*2)-1;
x.ImageDepth=0.5;
x.ImageRot=MathLib::Rnd()*6.28;
x.ImageScaleX =1;
x.ImageScaleY =1;
x.ImageOpacity=0.5;
WTF. What was the point of telling us about all these methods and properties that we can't use?
Re: Camera script examples?
For the record, the list of all classes was made by a player (_arc) and isn't related to Nadeo. The only official "documentation" available is this post: http://forum.maniaplanet.com/viewtopic.php?f=279&t=1672.Serpwidgets wrote:WTF. What was the point of telling us about all these methods and properties that we can't use?
Of course those "other threads" don't exist. Nadeo never provides proper documentation for anything.In this topic, I will explain only the script syntax, which is common to all the different scripts. The various script contexts will be exposed in other threads.
There's an updated list here: http://pastebin.com/dd4hZdRU which has all inaccessible mehtods marked with a '*'.
-
- Posts: 60
- Joined: 25 Oct 2011, 02:11
- Location: Wisconsin
- Contact:
Re: Camera script examples?
That's too bad, they're sitting on a potential gold mine of free content. I hope they're not stupid enough to cripple shootmania in this way, because while they might get away with it for a racing game, they won't stand a chance with FPS games if it can't be heavily edited.svens wrote:For the record, the list of all classes was made by a player (_arc) and isn't related to Nadeo. The only official "documentation" available is this post: http://forum.maniaplanet.com/viewtopic.php?f=279&t=1672.Serpwidgets wrote:WTF. What was the point of telling us about all these methods and properties that we can't use?Of course those "other threads" don't exist. Nadeo never provides proper documentation for anything.In this topic, I will explain only the script syntax, which is common to all the different scripts. The various script contexts will be exposed in other threads.
There's an updated list here: http://pastebin.com/dd4hZdRU which has all inaccessible mehtods marked with a '*'.
Who is online
Users browsing this forum: No registered users and 3 guests