View unanswered posts | View active topics It is currently Wed Jan 08, 2025 10:42 pm



Reply to topic  [ 2 posts ] 
 Objects that generate money and give money to the enemy. 
Author Message

Joined: Sun Sep 20, 2009 2:41 am
Posts: 30
Reply with quote
Post Objects that generate money and give money to the enemy.
I want to do a sort of "generator" that gives you 10oz every 30 seconds. and I want it so that when the enemy destroys it, it gives the enemy 2000oz. but, how whould I do it? I already have the sprites.


Fri Mar 12, 2010 2:11 am
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Objects that generate money and give money to the enemy.
Make an Actor. Not an AHuman, an Actor, like the brain case. But in the actors group, and not the brain group.

Make an emitter that emits 0.2835 kg MOPixels of gold material at an emission rate of 2. EmissionsIgnoreThis or whatever should be 0.

Make a Lua script, that, upon the destruction of the actor, adds 2000 gold to the opposite team's funds.

Attach the emitter to the actor, in the center. Apply the script to the actor.

(if the gold collection sound bothers you, you could replace the function of the emitter with some script in the update function)


Fri Mar 12, 2010 3:23 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.042s | 13 Queries | GZIP : Off ]