Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: A Few Questions And Errors
Josh.S
General Member
Since: May 27, 2012
Posts: 86
Last: Sep 16, 2014
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Sunday, Sep. 2, 2012 05:20 pm
Hey guys
I have a few questions about scripting
First : Is there any way i can add magic bullet shield to spawners that spawn in the script?
How come i cannot play an FX in game using this code\
playfx( getfx( "green_smoke" ), ( 10335 24775 10) );
i get unknow function even though i added
#include maps\_fx;
at the top of my script
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Saturday, Sep. 8, 2012 06:39 pm
I do not know if it will work.[confused]

Code:

getent( "actor", "targetname" ) thread add_spawn_function( ::shield);


Code:

shield()
{
self thread magic_bullet_shield();
}


Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Sep. 8, 2012 07:15 pm
Code:
playfx( level._effect[ "green_smoke"], ( 10335, 24775, 10) );

And inside your yourmapname_fx.gsc you must have
Code:
level._effect[ "green_smoke" ] 				= loadfx ( "smoke/signal_smoke_green" );//change smoke/signal_smoke_green to effect you want to use
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»