There is a script that change the sprite of an object whitout using a loop of a view? Can i refer directly to the sprite number so that i can save space for views? ... it is so boring to make a loop only for a little changing of a little object...
SetObjectGraphic (int object, int slot)
Sets the graphic for object number OBJECT to slot number SLOT. You can get the slot number from the Sprite Manager. If the object is currently animating (from an AnimateObject command) then the animation will be stopped.
Example:
SetObjectGraphic(2,100);
will change the object?s 2 image to the image stored in the sprite manager?s slot 100.
See Also: SetObjectFrame, SetObjectView
EDITed for friendlyness:
This answer is a manual extract, which can be difficult to find unless you already know its there by reading the whole thing through and memorizing it.
Oh, be nice.
Nice icon though. ;D
I was just following TerranRich DryHump's READ ME FIRST, NO ME, ME, ME, THIS ONE, SERIOUSLY, BEFORE ANY OTHER, ABSOLUTLY FIRST thread :P
Which is where the smilie(frownie?) came from, too
Thanks... but like i have already said i couldn't find that in the manual... it is a mine problem, bt i asked you to help me.
Quote from: Edward Becket on Tue 22/07/2003 21:10:23
Thanks... but like i have already said i couldn't find that in the manual... it is a mine problem, bt i asked you to help me.
Ummm... I really don't understand this at all? Can you rephrase, please?
English isn't his first language, so it says in his signature. But, as always, if it's in the manual, we'll tell you so. And SSH, I meant that one of US will respond will RTFM. I would've done that, but also give the impression that we're not mad or anything. Dammit, SSH, stop throwing your weight around! You're still a newbie too! :P
Ok... sorry. Evidently english is not my language ^^
However Dryhump have chosen the right topic: I'm still a newbie so please don't rebuke me if i can't find something in the manual :'(
Thanks to all, friends!
Well, I wasn't being abusive or anything... just telling him that the info is in the manual! I didn't mean to scare/upset/offend/throw my weight around. Sorry dryhump, scummy and edward! :-\
To be pedantic, Edward didn't actually say that he couldn't find it in the manual. And I did give the answer! :-\
Oh well. In my first two years of marriage, all the arguments I had with my Spanish wife eventually turned out to be down to some language misunderstanding. Of course, now we have real arguments ;)