• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Entity Engine

Status
Not open for further replies.
Level 9
Joined
Dec 17, 2008
Messages
312
http://www.hiveworkshop.com/forums/...-2-4-a-142085/?prev=search=entity&d=list&r=20

I want to make a simple modification using this system by HINDYhat.

I have tried a few times with simple vJass knowledge but can't seem to get anything to work.

What i am trying to do:

When a unit dies, 3 "corpse" bits are created (some type of imported model or a meatwagon missile) that last 3 seconds and are forced away from the dying unit in an upward direction (using the gravity funciton within the entity system).

When a hero dies, 7 larger "corpse" bits are created (using same models) but are forced in a upward-direction away from the dying hero.

All created piece are evenly spread out.

If someone will help create the trigger in vJass (ensuring it will work) I would greatly appreciate it!
(Sorry for being newb)
 
Level 22
Joined
Dec 31, 2006
Messages
2,216
First you need to make a new struct which extends entityData.
Look in SEEdatalib to do that.
Then you just make a new entity.
JASS:
set e = entity.create(YOUR_NEW_ENTITY_DATA_STRUCT.create(), YOUR_PLAYER, X_POSITION, Y_POSITION, HEIGHT, FACING_ANGLE)
And then you can use f.ex. the method "projectToPointTimed".
JASS:
call e.projectToPointTimed(X_POSITION, Y_POSITION, HEIGTH, TIME)
 
Status
Not open for further replies.
Top