Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,170 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 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 | 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