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
4 registered members (AndrewAMD, TipmyPip, NewbieZorro, Grant), 14,196 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
How to create a gun held by the player? #187779
03/10/08 07:56
03/10/08 07:56
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, I'm currently converting my entire script from C-Script to Lite-C. On the weapon code I got stuck. Here I'm trying to create a bow which is held by the player.

Code:

ENTITY* bow_entity =
{
type = "bow.mdl";
layer = 5;
view = camera;
x = 50;
y = 8;
z = 68;
flags = VISIBLE;
}



The same code works fine in C-Script, my bow appears in front of me but in lite-C i don't see anything!
Anyone an idea?

Re: How to create a gun held by the player? [Re: PadMalcom] #187780
03/10/08 10:06
03/10/08 10:06
Joined: Mar 2008
Posts: 17
Kärnten, Austria
T
Tarandur Offline
Newbie
Tarandur  Offline
Newbie
T

Joined: Mar 2008
Posts: 17
Kärnten, Austria
you could youse

bow = en_create(...)

and then sth like´

bow.layer = 5;
bow.view = camera;
etc

and i recommend you to check if the bows "properties" are still aviable in
lite-c. Try it out, ive got no idea if this is going to work.

Re: How to create a gun held by the player? [Re: Tarandur] #187781
03/10/08 12:45
03/10/08 12:45
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
try "flags2 = VISIBLE" for a view-entity, maybe that helps...

Re: How to create a gun held by the player? [Re: Widi] #187782
03/10/08 13:17
03/10/08 13:17
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Thanks for your tips, I'll try it tonight and report tomorrow


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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