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

Members Online

»
0 Active | 10 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page
subscribe
Author Topic: not an actor
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 11:05 am
Hope you still there,I wanna "teleport" an actor,is that possible?
Because i tried to delete the first actor,then respawn another actor,but then the script_friendname didn't work

ow yes another thing,how can i spawn 1actor in script,i know how to do multiple but i don't know how to spawn 1.
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 12:16 pm
select the actor in your script and alter it's origin. That teleports him.

As for the second question, I don't know nothing about SP scripting, but if you can post the script to spawn multiple actors, I'm sure I can try to figure out how to spawn just one :p
Share |
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 12:19 pm
how can i change it's origin?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 12:30 pm
actor setorigin( 0,0,0);
or
actor.origin = (0,0,0);

something like that should work
Share |
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 12:40 pm
when i use
actor.origin = (0,0,0);
i get an script compile error:

"cannot directly set the origin on AI.Use the teleport command instead"
Share |
babycop
General Member
Since: Feb 18, 2006
Posts: 488
Last: Feb 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 12:41 pm
Yorkshire has a great tutorial on spawning. It's for UO but it works for COD2:


http://map.planetmedalofhonor.gamespy.com/callofduty/forum/index.php?showtopic=62&hl=spawn+ai
Share |
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Saturday, Apr. 28, 2007 01:01 pm
k got it working:

here it is

teleport
{
telenode = getnode("teleport","targetname");

price teleport(telenode.origin);
price.goalradius = 0;
price setgoalnode(telenode);

}

It works with a node.the actor teleports to the node

thnx
Share |
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Sunday, Apr. 29, 2007 09:10 am
Does any1 know how to put an german weapon in a allied hands?
Because i found how to delete a gun in an AI's hands,and retrieve it,exept it is is own weapon that is deleted before
I used these lines for the deleting/retrieving:

price animscripts\shared::putGunInHand ("none");

price animscripts\shared::PutGunInHand("right");

It works fine,exept he always returns with an enfield,i need a kar98

Share |
soulwax
General Member
Since: Nov 14, 2005
Posts: 255
Last: Jul 28, 2008
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Sunday, Apr. 29, 2007 12:50 pm
never mind,i found something else
Share |
Restricted Access Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

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

»