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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 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
Gunscript for enemy ? #406214
08/15/12 11:50
08/15/12 11:50
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I have a question.
I have an enemy and one gun.
I have assigned the t_shooter_enemy script to the NPC, and the mgun-script to the gun.
How do I assign the weapon to the NPC? Is that even possible?

Answers in german and english, please.

Thanks in advance..

Re: Gunscript for enemy ? [Re: ralf0507] #406218
08/15/12 12:03
08/15/12 12:03
Joined: Jul 2008
Posts: 2,110
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,110
Germany
I dont know the templates but i guess mgun-script is the player weapon script so u cant assign it to an enemy. Add a weapon to your enemy model in med, or add it by script to the bones fex
Code:
vec_for_bone

. Then modify your enemy-action(t_shooter_enemy) to fire at the player ( if it does not already fire at the player ). Have a look at
Code:
c_trace



greets

Last edited by rayp; 08/15/12 12:07.

Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: Gunscript for enemy ? [Re: rayp] #406228
08/15/12 13:39
08/15/12 13:39
Joined: Sep 2009
Posts: 18
Paderborn, Germany
R
ralf0507 Offline OP
Newbie
ralf0507  Offline OP
Newbie
R

Joined: Sep 2009
Posts: 18
Paderborn, Germany
I will try it, Thanks


Moderated by  HeelX, rvL_eXile 

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