Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media_play on model #443148
07/10/14 08:30
07/10/14 08:30
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
I want to add a model (which has got black.tga and white.tga textures) to scene manually and attach an action to play video file only on black.tga this model but not using wed or ged, please help, thanks...

Re: media_play on model [Re: gamers] #443399
07/15/14 18:27
07/15/14 18:27
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
please help...

Re: media_play on model [Re: gamers] #443400
07/15/14 18:48
07/15/14 18:48
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Use bmap_for_entity with the correct frame/ skin parameter to retrieve a BMAP pointer to be used by media_play.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: media_play on model [Re: Superku] #443553
07/19/14 20:03
07/19/14 20:03
Joined: Jan 2012
Posts: 108
G
gamers Offline OP
Member
gamers  Offline OP
Member
G

Joined: Jan 2012
Posts: 108
is there any exaple ???

Re: media_play on model [Re: gamers] #443558
07/20/14 04:16
07/20/14 04:16
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline
Member
CyberGhost  Offline
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Yes, I want a one too. I've been following media_play() rules in the manual, but I can only hear the audio


Nothing to say ....
Re: media_play on model [Re: CyberGhost] #443559
07/20/14 05:56
07/20/14 05:56
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
just from what Superku said, and looking at the manual, you need something like this. Forewarning, this is not tested so it may not work but it should be a step in the right direction.
Code:
//this should play the movie but only on the current skin
media_play("moviefile.mpg", bmap_for_entity(entityGoesHere,0), 100);


Re: media_play on model [Re: xbox] #443565
07/20/14 14:17
07/20/14 14:17
Joined: May 2014
Posts: 179
The lit part of the Truth
C
CyberGhost Offline
Member
CyberGhost  Offline
Member
C

Joined: May 2014
Posts: 179
The lit part of the Truth
Ok, but the video doesn't play ,only audio. The texture is 24-bit TGA without Alpha channel ,but the problem persists


Nothing to say ....

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1