Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 14,661 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_decal in c-script #291377
09/24/09 19:29
09/24/09 19:29
Joined: Sep 2009
Posts: 20
U
uniman Offline OP
Newbie
uniman  Offline OP
Newbie
U

Joined: Sep 2009
Posts: 20
I'm new to gamestudio, and am not quite ready to right codes in lite-c. I've successfully used the "ent_decal" command
following a c_trace. What I am wondering is if it is possible
to give the created decal a function(ex. lifespan, color, alpha). The examples I've seen(p.lifespan = 100, etc.) are lite-c commands which I cannot get to work in plain c-script.
any possble solutions are appreciated.

Re: ent_decal in c-script [Re: uniman] #291379
09/24/09 19:32
09/24/09 19:32
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Why would you want to program this in "C-Script"?

C-Script is not for newbies and not for new projects. Use lite-C when you are new to Gamestudio. Decals can not be accessed in C-Script anyway because the decal struct does not exist in that old language.

Re: ent_decal in c-script [Re: Tobias] #291380
09/24/09 19:39
09/24/09 19:39
Joined: Sep 2009
Posts: 20
U
uniman Offline OP
Newbie
uniman  Offline OP
Newbie
U

Joined: Sep 2009
Posts: 20
actually the decal DID work as I said before. the decal showed
up at the hit point. my problem is that I can't give the
created bmap decal a function. Also I am starting in c-script
because it already has many scripts pre-assembled(weapons00,PlBiped, AiFPS, etc.).

Re: ent_decal in c-script [Re: uniman] #291381
09/24/09 19:47
09/24/09 19:47
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Decals are accessed through the PARTICLE struct which doesn't exist in C-Script, so you cant give decals a function in C-Script.


Gamestudio download | 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