Aller au contenu

Custom placeables? (Invisible placeable)


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Guest_dewkl_*

Guest_dewkl_*
  • Guests
How can I create a custom placeable appearance? I seem restricted to the default list (doors etc.), with no option of creating a new one from scratch.

I'm trying to make an invisible placeable that can be clicked from a distance. How can I set the "click box", the area near the model the player must click in order to interact with it?

Also, how do I create a VFX on top of the placeable when it's clicked?  I currently have declared; 
effect eVFX = EffectVisualEffect(1541);                                 // dark cone effect or something
object oFakkel  = GetObjectByTag("ofak01");                      // get id of waypoint 
location lFakkel= GetLocation(oFakkel);                              // set location

I'm calling; ApplyEffectOnObject(EFFECT_DURATION_TYPE_TEMPORARY, eVFX, oFakkel, 6.0f, oFakkel,0);
under case EVENT_TYPE_PLACEABLE_ONCLICK

Modifié par dewkl, 22 mars 2010 - 03:15 .


#2
Guest_dewkl_*

Guest_dewkl_*
  • Guests
Update: I figured out how to inflict the user with a spell effect. So scratch that question. Just took a while for me to find the correct function to get the player 

Edit: Where are the item and spell scripts hidden? I can only find (what seems to be) general/template scripts.

Modifié par dewkl, 22 mars 2010 - 03:35 .